OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CC_LAYERS_LAYER_IMPL_TEST_PROPERTIES_H_ | 5 #ifndef CC_LAYERS_LAYER_IMPL_TEST_PROPERTIES_H_ |
6 #define CC_LAYERS_LAYER_IMPL_TEST_PROPERTIES_H_ | 6 #define CC_LAYERS_LAYER_IMPL_TEST_PROPERTIES_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/memory/ptr_util.h" | 11 #include "base/memory/ptr_util.h" |
12 #include "cc/layers/layer_collections.h" | 12 #include "cc/layers/layer_collections.h" |
13 #include "cc/layers/layer_position_constraint.h" | 13 #include "cc/layers/layer_position_constraint.h" |
14 #include "cc/output/filter_operations.h" | 14 #include "cc/output/filter_operations.h" |
15 #include "third_party/skia/include/core/SkXfermode.h" | 15 #include "third_party/skia/include/core/SkXfermode.h" |
16 #include "ui/gfx/geometry/point3_f.h" | 16 #include "ui/gfx/geometry/point3_f.h" |
| 17 #include "ui/gfx/transform.h" |
17 | 18 |
18 namespace cc { | 19 namespace cc { |
19 | 20 |
20 class CopyOutputRequest; | 21 class CopyOutputRequest; |
21 class LayerImpl; | 22 class LayerImpl; |
22 | 23 |
23 struct CC_EXPORT LayerImplTestProperties { | 24 struct CC_EXPORT LayerImplTestProperties { |
24 explicit LayerImplTestProperties(LayerImpl* owning_layer); | 25 explicit LayerImplTestProperties(LayerImpl* owning_layer); |
25 ~LayerImplTestProperties(); | 26 ~LayerImplTestProperties(); |
26 | 27 |
(...skipping 10 matching lines...) Expand all Loading... |
37 bool hide_layer_and_subtree; | 38 bool hide_layer_and_subtree; |
38 bool opacity_can_animate; | 39 bool opacity_can_animate; |
39 int num_descendants_that_draw_content; | 40 int num_descendants_that_draw_content; |
40 size_t num_unclipped_descendants; | 41 size_t num_unclipped_descendants; |
41 float opacity; | 42 float opacity; |
42 FilterOperations filters; | 43 FilterOperations filters; |
43 FilterOperations background_filters; | 44 FilterOperations background_filters; |
44 SkXfermode::Mode blend_mode; | 45 SkXfermode::Mode blend_mode; |
45 LayerPositionConstraint position_constraint; | 46 LayerPositionConstraint position_constraint; |
46 gfx::Point3F transform_origin; | 47 gfx::Point3F transform_origin; |
| 48 gfx::Transform transform; |
47 LayerImpl* scroll_parent; | 49 LayerImpl* scroll_parent; |
48 std::unique_ptr<std::set<LayerImpl*>> scroll_children; | 50 std::unique_ptr<std::set<LayerImpl*>> scroll_children; |
49 LayerImpl* clip_parent; | 51 LayerImpl* clip_parent; |
50 std::unique_ptr<std::set<LayerImpl*>> clip_children; | 52 std::unique_ptr<std::set<LayerImpl*>> clip_children; |
51 std::vector<std::unique_ptr<CopyOutputRequest>> copy_requests; | 53 std::vector<std::unique_ptr<CopyOutputRequest>> copy_requests; |
52 LayerImplList children; | 54 LayerImplList children; |
53 LayerImpl* mask_layer; | 55 LayerImpl* mask_layer; |
54 LayerImpl* replica_layer; | 56 LayerImpl* replica_layer; |
55 LayerImpl* parent; | 57 LayerImpl* parent; |
56 }; | 58 }; |
57 | 59 |
58 } // namespace cc | 60 } // namespace cc |
59 | 61 |
60 #endif // CC_LAYERS_LAYER_IMPL_TEST_PROPERTIES_H_ | 62 #endif // CC_LAYERS_LAYER_IMPL_TEST_PROPERTIES_H_ |
OLD | NEW |