1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
cc / test / test_paint_worklet_input.cc [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