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 |
(...skipping 18 matching lines...) Expand all Loading... |
29 struct CC_EXPORT LayerImplTestProperties { | 29 struct CC_EXPORT LayerImplTestProperties { |
30 explicit LayerImplTestProperties(LayerImpl* owning_layer); | 30 explicit LayerImplTestProperties(LayerImpl* owning_layer); |
31 ~LayerImplTestProperties(); | 31 ~LayerImplTestProperties(); |
32 | 32 |
33 void AddChild(std::unique_ptr<LayerImpl> child); | 33 void AddChild(std::unique_ptr<LayerImpl> child); |
34 std::unique_ptr<LayerImpl> RemoveChild(LayerImpl* child); | 34 std::unique_ptr<LayerImpl> RemoveChild(LayerImpl* child); |
35 void SetMaskLayer(std::unique_ptr<LayerImpl> mask); | 35 void SetMaskLayer(std::unique_ptr<LayerImpl> mask); |
36 | 36 |
37 LayerImpl* owning_layer; | 37 LayerImpl* owning_layer; |
38 bool double_sided; | 38 bool double_sided; |
| 39 bool cache_render_surface; |
39 bool force_render_surface; | 40 bool force_render_surface; |
40 bool is_container_for_fixed_position_layers; | 41 bool is_container_for_fixed_position_layers; |
41 bool should_flatten_transform; | 42 bool should_flatten_transform; |
42 bool hide_layer_and_subtree; | 43 bool hide_layer_and_subtree; |
43 bool opacity_can_animate; | 44 bool opacity_can_animate; |
44 bool subtree_has_copy_request; | 45 bool subtree_has_copy_request; |
45 int sorting_context_id; | 46 int sorting_context_id; |
46 float opacity; | 47 float opacity; |
47 FilterOperations filters; | 48 FilterOperations filters; |
48 FilterOperations background_filters; | 49 FilterOperations background_filters; |
(...skipping 12 matching lines...) Expand all Loading... |
61 LayerImpl* mask_layer; | 62 LayerImpl* mask_layer; |
62 LayerImpl* parent; | 63 LayerImpl* parent; |
63 bool user_scrollable_horizontal = true; | 64 bool user_scrollable_horizontal = true; |
64 bool user_scrollable_vertical = true; | 65 bool user_scrollable_vertical = true; |
65 ScrollBoundaryBehavior scroll_boundary_behavior; | 66 ScrollBoundaryBehavior scroll_boundary_behavior; |
66 }; | 67 }; |
67 | 68 |
68 } // namespace cc | 69 } // namespace cc |
69 | 70 |
70 #endif // CC_LAYERS_LAYER_IMPL_TEST_PROPERTIES_H_ | 71 #endif // CC_LAYERS_LAYER_IMPL_TEST_PROPERTIES_H_ |
OLD | NEW |