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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 } | 95 } |
96 | 96 |
97 HeadsUpDisplayLayerImpl* hud_layer() { return hud_layer_; } | 97 HeadsUpDisplayLayerImpl* hud_layer() { return hud_layer_; } |
98 void set_hud_layer(HeadsUpDisplayLayerImpl* layer_impl) { | 98 void set_hud_layer(HeadsUpDisplayLayerImpl* layer_impl) { |
99 hud_layer_ = layer_impl; | 99 hud_layer_ = layer_impl; |
100 } | 100 } |
101 | 101 |
102 LayerImpl* RootScrollLayer() const; | 102 LayerImpl* RootScrollLayer() const; |
103 LayerImpl* RootClipLayer() const; | 103 LayerImpl* RootClipLayer() const; |
104 LayerImpl* CurrentlyScrollingLayer() const; | 104 LayerImpl* CurrentlyScrollingLayer() const; |
105 void set_currently_scrolling_layer(LayerImpl* layer) { | 105 void SetCurrentlyScrollingLayer(LayerImpl* layer); |
106 currently_scrolling_layer_ = layer; | |
107 } | |
108 | |
109 void ClearCurrentlyScrollingLayer(); | 106 void ClearCurrentlyScrollingLayer(); |
110 | 107 |
111 void FindRootScrollLayer(); | 108 void FindRootScrollLayer(); |
112 void UpdateMaxScrollOffset(); | 109 void UpdateMaxScrollOffset(); |
113 | 110 |
114 SkColor background_color() const { return background_color_; } | 111 SkColor background_color() const { return background_color_; } |
115 void set_background_color(SkColor color) { background_color_ = color; } | 112 void set_background_color(SkColor color) { background_color_ = color; } |
116 | 113 |
117 bool has_transparent_background() const { | 114 bool has_transparent_background() const { |
118 return has_transparent_background_; | 115 return has_transparent_background_; |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
247 // In impl-side painting mode, this is true when the tree may contain | 244 // In impl-side painting mode, this is true when the tree may contain |
248 // structural differences relative to the active tree. | 245 // structural differences relative to the active tree. |
249 bool needs_full_tree_sync_; | 246 bool needs_full_tree_sync_; |
250 | 247 |
251 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); | 248 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); |
252 }; | 249 }; |
253 | 250 |
254 } | 251 } |
255 | 252 |
256 #endif // CC_LAYER_TREE_IMPL_H_ | 253 #endif // CC_LAYER_TREE_IMPL_H_ |
OLD | NEW |