OLD | NEW |
1 // Copyright 2011 The Chromium Authors. All rights reserved. | 1 // Copyright 2011 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_H_ | 5 #ifndef CC_LAYERS_LAYER_IMPL_H_ |
6 #define CC_LAYERS_LAYER_IMPL_H_ | 6 #define CC_LAYERS_LAYER_IMPL_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 | 163 |
164 void SetTransformTreeIndex(int index); | 164 void SetTransformTreeIndex(int index); |
165 int transform_tree_index() const { return transform_tree_index_; } | 165 int transform_tree_index() const { return transform_tree_index_; } |
166 | 166 |
167 void SetClipTreeIndex(int index); | 167 void SetClipTreeIndex(int index); |
168 int clip_tree_index() const { return clip_tree_index_; } | 168 int clip_tree_index() const { return clip_tree_index_; } |
169 | 169 |
170 void SetEffectTreeIndex(int index); | 170 void SetEffectTreeIndex(int index); |
171 int effect_tree_index() const { return effect_tree_index_; } | 171 int effect_tree_index() const { return effect_tree_index_; } |
172 | 172 |
| 173 void SetScrollTreeIndex(int index); |
| 174 int scroll_tree_index() const { return scroll_tree_index_; } |
| 175 |
173 void set_offset_to_transform_parent(const gfx::Vector2dF& offset) { | 176 void set_offset_to_transform_parent(const gfx::Vector2dF& offset) { |
174 offset_to_transform_parent_ = offset; | 177 offset_to_transform_parent_ = offset; |
175 SetNeedsPushProperties(); | 178 SetNeedsPushProperties(); |
176 } | 179 } |
177 gfx::Vector2dF offset_to_transform_parent() const { | 180 gfx::Vector2dF offset_to_transform_parent() const { |
178 return offset_to_transform_parent_; | 181 return offset_to_transform_parent_; |
179 } | 182 } |
180 | 183 |
181 const gfx::Rect& visible_rect_from_property_trees() const { | 184 const gfx::Rect& visible_rect_from_property_trees() const { |
182 return visible_rect_from_property_trees_; | 185 return visible_rect_from_property_trees_; |
(...skipping 644 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
827 | 830 |
828 gfx::Vector2dF scroll_compensation_adjustment_; | 831 gfx::Vector2dF scroll_compensation_adjustment_; |
829 | 832 |
830 int num_descendants_that_draw_content_; | 833 int num_descendants_that_draw_content_; |
831 | 834 |
832 gfx::Rect visible_rect_from_property_trees_; | 835 gfx::Rect visible_rect_from_property_trees_; |
833 gfx::Rect clip_rect_in_target_space_from_property_trees_; | 836 gfx::Rect clip_rect_in_target_space_from_property_trees_; |
834 int transform_tree_index_; | 837 int transform_tree_index_; |
835 int effect_tree_index_; | 838 int effect_tree_index_; |
836 int clip_tree_index_; | 839 int clip_tree_index_; |
| 840 int scroll_tree_index_; |
837 | 841 |
838 // The global depth value of the center of the layer. This value is used | 842 // The global depth value of the center of the layer. This value is used |
839 // to sort layers from back to front. | 843 // to sort layers from back to front. |
840 float draw_depth_; | 844 float draw_depth_; |
841 | 845 |
842 FilterOperations filters_; | 846 FilterOperations filters_; |
843 FilterOperations background_filters_; | 847 FilterOperations background_filters_; |
844 | 848 |
845 protected: | 849 protected: |
846 friend class TreeSynchronizer; | 850 friend class TreeSynchronizer; |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
896 bool layer_or_descendant_has_input_handler_; | 900 bool layer_or_descendant_has_input_handler_; |
897 bool sorted_for_recursion_; | 901 bool sorted_for_recursion_; |
898 bool is_hidden_from_property_trees_; | 902 bool is_hidden_from_property_trees_; |
899 | 903 |
900 DISALLOW_COPY_AND_ASSIGN(LayerImpl); | 904 DISALLOW_COPY_AND_ASSIGN(LayerImpl); |
901 }; | 905 }; |
902 | 906 |
903 } // namespace cc | 907 } // namespace cc |
904 | 908 |
905 #endif // CC_LAYERS_LAYER_IMPL_H_ | 909 #endif // CC_LAYERS_LAYER_IMPL_H_ |
OLD | NEW |