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/layers/layer_sticky_position_constraint.h" |
14 #include "cc/output/filter_operations.h" | 15 #include "cc/output/filter_operations.h" |
15 #include "third_party/skia/include/core/SkXfermode.h" | 16 #include "third_party/skia/include/core/SkXfermode.h" |
16 #include "ui/gfx/geometry/point3_f.h" | 17 #include "ui/gfx/geometry/point3_f.h" |
17 #include "ui/gfx/transform.h" | 18 #include "ui/gfx/transform.h" |
18 | 19 |
19 namespace cc { | 20 namespace cc { |
20 | 21 |
21 class CopyOutputRequest; | 22 class CopyOutputRequest; |
22 class LayerImpl; | 23 class LayerImpl; |
23 | 24 |
(...skipping 14 matching lines...) Expand all Loading... |
38 bool hide_layer_and_subtree; | 39 bool hide_layer_and_subtree; |
39 bool opacity_can_animate; | 40 bool opacity_can_animate; |
40 int num_descendants_that_draw_content; | 41 int num_descendants_that_draw_content; |
41 size_t num_unclipped_descendants; | 42 size_t num_unclipped_descendants; |
42 float opacity; | 43 float opacity; |
43 FilterOperations filters; | 44 FilterOperations filters; |
44 FilterOperations background_filters; | 45 FilterOperations background_filters; |
45 gfx::PointF filters_origin; | 46 gfx::PointF filters_origin; |
46 SkXfermode::Mode blend_mode; | 47 SkXfermode::Mode blend_mode; |
47 LayerPositionConstraint position_constraint; | 48 LayerPositionConstraint position_constraint; |
| 49 LayerStickyPositionConstraint sticky_position_constraint; |
48 gfx::Point3F transform_origin; | 50 gfx::Point3F transform_origin; |
49 gfx::Transform transform; | 51 gfx::Transform transform; |
50 LayerImpl* scroll_parent; | 52 LayerImpl* scroll_parent; |
51 std::unique_ptr<std::set<LayerImpl*>> scroll_children; | 53 std::unique_ptr<std::set<LayerImpl*>> scroll_children; |
52 LayerImpl* clip_parent; | 54 LayerImpl* clip_parent; |
53 std::unique_ptr<std::set<LayerImpl*>> clip_children; | 55 std::unique_ptr<std::set<LayerImpl*>> clip_children; |
54 std::vector<std::unique_ptr<CopyOutputRequest>> copy_requests; | 56 std::vector<std::unique_ptr<CopyOutputRequest>> copy_requests; |
55 LayerImplList children; | 57 LayerImplList children; |
56 LayerImpl* mask_layer; | 58 LayerImpl* mask_layer; |
57 LayerImpl* replica_layer; | 59 LayerImpl* replica_layer; |
58 LayerImpl* parent; | 60 LayerImpl* parent; |
59 }; | 61 }; |
60 | 62 |
61 } // namespace cc | 63 } // namespace cc |
62 | 64 |
63 #endif // CC_LAYERS_LAYER_IMPL_TEST_PROPERTIES_H_ | 65 #endif // CC_LAYERS_LAYER_IMPL_TEST_PROPERTIES_H_ |
OLD | NEW |