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 <map> | 8 #include <map> |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 class OpacityTree; | 60 class OpacityTree; |
61 class PrioritizedTile; | 61 class PrioritizedTile; |
62 class RenderPass; | 62 class RenderPass; |
63 class RenderPassId; | 63 class RenderPassId; |
64 class Renderer; | 64 class Renderer; |
65 class ScrollbarAnimationController; | 65 class ScrollbarAnimationController; |
66 class ScrollbarLayerImplBase; | 66 class ScrollbarLayerImplBase; |
67 class SimpleEnclosedRegion; | 67 class SimpleEnclosedRegion; |
68 class Tile; | 68 class Tile; |
69 class TransformTree; | 69 class TransformTree; |
| 70 class ScrollState; |
70 | 71 |
71 struct AppendQuadsData; | 72 struct AppendQuadsData; |
72 | 73 |
73 enum DrawMode { | 74 enum DrawMode { |
74 DRAW_MODE_NONE, | 75 DRAW_MODE_NONE, |
75 DRAW_MODE_HARDWARE, | 76 DRAW_MODE_HARDWARE, |
76 DRAW_MODE_SOFTWARE, | 77 DRAW_MODE_SOFTWARE, |
77 DRAW_MODE_RESOURCELESS_SOFTWARE | 78 DRAW_MODE_RESOURCELESS_SOFTWARE |
78 }; | 79 }; |
79 | 80 |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 LayerImpl* scroll_parent() { return scroll_parent_; } | 143 LayerImpl* scroll_parent() { return scroll_parent_; } |
143 const LayerImpl* scroll_parent() const { return scroll_parent_; } | 144 const LayerImpl* scroll_parent() const { return scroll_parent_; } |
144 | 145 |
145 void SetScrollChildren(std::set<LayerImpl*>* children); | 146 void SetScrollChildren(std::set<LayerImpl*>* children); |
146 | 147 |
147 std::set<LayerImpl*>* scroll_children() { return scroll_children_.get(); } | 148 std::set<LayerImpl*>* scroll_children() { return scroll_children_.get(); } |
148 const std::set<LayerImpl*>* scroll_children() const { | 149 const std::set<LayerImpl*>* scroll_children() const { |
149 return scroll_children_.get(); | 150 return scroll_children_.get(); |
150 } | 151 } |
151 | 152 |
| 153 void DistributeScroll(ScrollState* scroll_state); |
| 154 void ApplyScroll(ScrollState* scroll_state); |
| 155 |
152 void set_property_tree_sequence_number(int sequence_number) {} | 156 void set_property_tree_sequence_number(int sequence_number) {} |
153 | 157 |
154 void SetTransformTreeIndex(int index); | 158 void SetTransformTreeIndex(int index); |
155 int transform_tree_index() const { return transform_tree_index_; } | 159 int transform_tree_index() const { return transform_tree_index_; } |
156 | 160 |
157 void SetClipTreeIndex(int index); | 161 void SetClipTreeIndex(int index); |
158 int clip_tree_index() const { return clip_tree_index_; } | 162 int clip_tree_index() const { return clip_tree_index_; } |
159 | 163 |
160 void SetOpacityTreeIndex(int index); | 164 void SetOpacityTreeIndex(int index); |
161 int opacity_tree_index() const { return opacity_tree_index_; } | 165 int opacity_tree_index() const { return opacity_tree_index_; } |
(...skipping 707 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
869 bool visited_; | 873 bool visited_; |
870 bool layer_or_descendant_is_drawn_; | 874 bool layer_or_descendant_is_drawn_; |
871 bool sorted_for_recursion_; | 875 bool sorted_for_recursion_; |
872 | 876 |
873 DISALLOW_COPY_AND_ASSIGN(LayerImpl); | 877 DISALLOW_COPY_AND_ASSIGN(LayerImpl); |
874 }; | 878 }; |
875 | 879 |
876 } // namespace cc | 880 } // namespace cc |
877 | 881 |
878 #endif // CC_LAYERS_LAYER_IMPL_H_ | 882 #endif // CC_LAYERS_LAYER_IMPL_H_ |
OLD | NEW |