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