OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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_LAYER_TREE_IMPL_H_ | 5 #ifndef CC_LAYER_TREE_IMPL_H_ |
6 #define CC_LAYER_TREE_IMPL_H_ | 6 #define CC_LAYER_TREE_IMPL_H_ |
7 | 7 |
8 #include "base/hash_tables.h" | 8 #include "base/hash_tables.h" |
9 #include "base/values.h" | 9 #include "base/values.h" |
10 #include "cc/layer_impl.h" | 10 #include "cc/layer_impl.h" |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 } | 94 } |
95 | 95 |
96 HeadsUpDisplayLayerImpl* hud_layer() { return hud_layer_; } | 96 HeadsUpDisplayLayerImpl* hud_layer() { return hud_layer_; } |
97 void set_hud_layer(HeadsUpDisplayLayerImpl* layer_impl) { | 97 void set_hud_layer(HeadsUpDisplayLayerImpl* layer_impl) { |
98 hud_layer_ = layer_impl; | 98 hud_layer_ = layer_impl; |
99 } | 99 } |
100 | 100 |
101 LayerImpl* RootScrollLayer() const; | 101 LayerImpl* RootScrollLayer() const; |
102 LayerImpl* RootClipLayer() const; | 102 LayerImpl* RootClipLayer() const; |
103 LayerImpl* CurrentlyScrollingLayer() const; | 103 LayerImpl* CurrentlyScrollingLayer() const; |
104 void set_currently_scrolling_layer(LayerImpl* layer) { | 104 void SetCurrentlyScrollingLayer(LayerImpl* layer); |
105 currently_scrolling_layer_ = layer; | |
106 } | |
107 | |
108 void ClearCurrentlyScrollingLayer(); | 105 void ClearCurrentlyScrollingLayer(); |
109 | 106 |
110 void FindRootScrollLayer(); | 107 void FindRootScrollLayer(); |
111 void UpdateMaxScrollOffset(); | 108 void UpdateMaxScrollOffset(); |
112 | 109 |
113 SkColor background_color() const { return background_color_; } | 110 SkColor background_color() const { return background_color_; } |
114 void set_background_color(SkColor color) { background_color_ = color; } | 111 void set_background_color(SkColor color) { background_color_ = color; } |
115 | 112 |
116 bool has_transparent_background() const { | 113 bool has_transparent_background() const { |
117 return has_transparent_background_; | 114 return has_transparent_background_; |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
228 // In impl-side painting mode, this is true when the tree may contain | 225 // In impl-side painting mode, this is true when the tree may contain |
229 // structural differences relative to the active tree. | 226 // structural differences relative to the active tree. |
230 bool needs_full_tree_sync_; | 227 bool needs_full_tree_sync_; |
231 | 228 |
232 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); | 229 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); |
233 }; | 230 }; |
234 | 231 |
235 } | 232 } |
236 | 233 |
237 #endif // CC_LAYER_TREE_IMPL_H_ | 234 #endif // CC_LAYER_TREE_IMPL_H_ |
OLD | NEW |