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 639 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
822 | 825 |
823 gfx::Vector2dF scroll_compensation_adjustment_; | 826 gfx::Vector2dF scroll_compensation_adjustment_; |
824 | 827 |
825 int num_descendants_that_draw_content_; | 828 int num_descendants_that_draw_content_; |
826 | 829 |
827 gfx::Rect visible_rect_from_property_trees_; | 830 gfx::Rect visible_rect_from_property_trees_; |
828 gfx::Rect clip_rect_in_target_space_from_property_trees_; | 831 gfx::Rect clip_rect_in_target_space_from_property_trees_; |
829 int transform_tree_index_; | 832 int transform_tree_index_; |
830 int effect_tree_index_; | 833 int effect_tree_index_; |
831 int clip_tree_index_; | 834 int clip_tree_index_; |
| 835 int scroll_tree_index_; |
832 | 836 |
833 // The global depth value of the center of the layer. This value is used | 837 // The global depth value of the center of the layer. This value is used |
834 // to sort layers from back to front. | 838 // to sort layers from back to front. |
835 float draw_depth_; | 839 float draw_depth_; |
836 | 840 |
837 FilterOperations filters_; | 841 FilterOperations filters_; |
838 FilterOperations background_filters_; | 842 FilterOperations background_filters_; |
839 | 843 |
840 protected: | 844 protected: |
841 friend class TreeSynchronizer; | 845 friend class TreeSynchronizer; |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
890 // If true, the layer or one of its descendants has a wheel or touch handler. | 894 // If true, the layer or one of its descendants has a wheel or touch handler. |
891 bool layer_or_descendant_has_input_handler_; | 895 bool layer_or_descendant_has_input_handler_; |
892 bool sorted_for_recursion_; | 896 bool sorted_for_recursion_; |
893 | 897 |
894 DISALLOW_COPY_AND_ASSIGN(LayerImpl); | 898 DISALLOW_COPY_AND_ASSIGN(LayerImpl); |
895 }; | 899 }; |
896 | 900 |
897 } // namespace cc | 901 } // namespace cc |
898 | 902 |
899 #endif // CC_LAYERS_LAYER_IMPL_H_ | 903 #endif // CC_LAYERS_LAYER_IMPL_H_ |
OLD | NEW |