| 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 "ui/gfx/geometry/point3_f.h" | 15 #include "ui/gfx/geometry/point3_f.h" |
| 15 | 16 |
| 16 namespace cc { | 17 namespace cc { |
| 17 | 18 |
| 18 class CopyOutputRequest; | 19 class CopyOutputRequest; |
| 19 class LayerImpl; | 20 class LayerImpl; |
| 20 | 21 |
| 21 struct CC_EXPORT LayerImplTestProperties { | 22 struct CC_EXPORT LayerImplTestProperties { |
| 22 explicit LayerImplTestProperties(LayerImpl* owning_layer); | 23 explicit LayerImplTestProperties(LayerImpl* owning_layer); |
| 23 ~LayerImplTestProperties(); | 24 ~LayerImplTestProperties(); |
| 24 | 25 |
| 25 void AddChild(std::unique_ptr<LayerImpl> child); | 26 void AddChild(std::unique_ptr<LayerImpl> child); |
| 26 std::unique_ptr<LayerImpl> RemoveChild(LayerImpl* child); | 27 std::unique_ptr<LayerImpl> RemoveChild(LayerImpl* child); |
| 27 void SetMaskLayer(std::unique_ptr<LayerImpl> mask); | 28 void SetMaskLayer(std::unique_ptr<LayerImpl> mask); |
| 28 void SetReplicaLayer(std::unique_ptr<LayerImpl> replica); | 29 void SetReplicaLayer(std::unique_ptr<LayerImpl> replica); |
| 29 | 30 |
| 30 LayerImpl* owning_layer; | 31 LayerImpl* owning_layer; |
| 31 bool double_sided; | 32 bool double_sided; |
| 32 bool force_render_surface; | 33 bool force_render_surface; |
| 33 bool is_container_for_fixed_position_layers; | 34 bool is_container_for_fixed_position_layers; |
| 34 bool should_flatten_transform; | 35 bool should_flatten_transform; |
| 35 bool hide_layer_and_subtree; | 36 bool hide_layer_and_subtree; |
| 36 bool opacity_can_animate; | 37 bool opacity_can_animate; |
| 37 int num_descendants_that_draw_content; | 38 int num_descendants_that_draw_content; |
| 38 size_t num_unclipped_descendants; | 39 size_t num_unclipped_descendants; |
| 39 float opacity; | 40 float opacity; |
| 41 FilterOperations background_filters; |
| 40 LayerPositionConstraint position_constraint; | 42 LayerPositionConstraint position_constraint; |
| 41 gfx::Point3F transform_origin; | 43 gfx::Point3F transform_origin; |
| 42 LayerImpl* scroll_parent; | 44 LayerImpl* scroll_parent; |
| 43 std::unique_ptr<std::set<LayerImpl*>> scroll_children; | 45 std::unique_ptr<std::set<LayerImpl*>> scroll_children; |
| 44 LayerImpl* clip_parent; | 46 LayerImpl* clip_parent; |
| 45 std::unique_ptr<std::set<LayerImpl*>> clip_children; | 47 std::unique_ptr<std::set<LayerImpl*>> clip_children; |
| 46 std::vector<std::unique_ptr<CopyOutputRequest>> copy_requests; | 48 std::vector<std::unique_ptr<CopyOutputRequest>> copy_requests; |
| 47 LayerImplList children; | 49 LayerImplList children; |
| 48 LayerImpl* mask_layer; | 50 LayerImpl* mask_layer; |
| 49 LayerImpl* replica_layer; | 51 LayerImpl* replica_layer; |
| 50 LayerImpl* parent; | 52 LayerImpl* parent; |
| 51 }; | 53 }; |
| 52 | 54 |
| 53 } // namespace cc | 55 } // namespace cc |
| 54 | 56 |
| 55 #endif // CC_LAYERS_LAYER_IMPL_TEST_PROPERTIES_H_ | 57 #endif // CC_LAYERS_LAYER_IMPL_TEST_PROPERTIES_H_ |
| OLD | NEW |