blob: a1381419224e2727abd97383a3668d9d33cb0491 [file] [log] [blame]
// Copyright 2018 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "cc/test/test_paint_worklet_input.h"
#include <vector>
namespace cc {
TestPaintWorkletInput::TestPaintWorkletInput(const gfx::SizeF& size)
: container_size_(size) {}
TestPaintWorkletInput::TestPaintWorkletInput(
const PaintWorkletInput::PropertyKey& key,
const gfx::SizeF& size)
: container_size_(size) {
property_keys_.push_back(key);
}
TestPaintWorkletInput::~TestPaintWorkletInput() = default;
gfx::SizeF TestPaintWorkletInput::GetSize() const {
return container_size_;
}
int TestPaintWorkletInput::WorkletId() const {
return 1u;
}
const std::vector<PaintWorkletInput::PropertyKey>&
TestPaintWorkletInput::GetPropertyKeys() const {
return property_keys_;
}
bool TestPaintWorkletInput::IsCSSPaintWorkletInput() const {
return false;
}
bool TestPaintWorkletInput::NeedsLayer() const {
return true;
}
} // namespace cc