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_TREES_LAYER_TREE_IMPL_H_ | 5 #ifndef CC_TREES_LAYER_TREE_IMPL_H_ |
6 #define CC_TREES_LAYER_TREE_IMPL_H_ | 6 #define CC_TREES_LAYER_TREE_IMPL_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 void set_source_frame_number(int frame_number) { | 95 void set_source_frame_number(int frame_number) { |
96 source_frame_number_ = frame_number; | 96 source_frame_number_ = frame_number; |
97 } | 97 } |
98 | 98 |
99 HeadsUpDisplayLayerImpl* hud_layer() { return hud_layer_; } | 99 HeadsUpDisplayLayerImpl* hud_layer() { return hud_layer_; } |
100 void set_hud_layer(HeadsUpDisplayLayerImpl* layer_impl) { | 100 void set_hud_layer(HeadsUpDisplayLayerImpl* layer_impl) { |
101 hud_layer_ = layer_impl; | 101 hud_layer_ = layer_impl; |
102 } | 102 } |
103 | 103 |
104 LayerImpl* RootScrollLayer() const; | 104 LayerImpl* RootScrollLayer() const; |
105 LayerImpl* RootClipLayer() const; | 105 LayerImpl* RootContainerLayer() const; |
106 LayerImpl* CurrentlyScrollingLayer() const; | 106 LayerImpl* CurrentlyScrollingLayer() const; |
107 void SetCurrentlyScrollingLayer(LayerImpl* layer); | 107 void SetCurrentlyScrollingLayer(LayerImpl* layer); |
108 void ClearCurrentlyScrollingLayer(); | 108 void ClearCurrentlyScrollingLayer(); |
109 | 109 |
110 void FindRootScrollLayer(); | 110 void FindRootScrollLayer(); |
111 void UpdateMaxScrollOffset(); | 111 void UpdateMaxScrollOffset(); |
112 | 112 |
113 SkColor background_color() const { return background_color_; } | 113 SkColor background_color() const { return background_color_; } |
114 void set_background_color(SkColor color) { background_color_ = color; } | 114 void set_background_color(SkColor color) { background_color_ = color; } |
115 | 115 |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
239 | 239 |
240 ui::LatencyInfo latency_info_; | 240 ui::LatencyInfo latency_info_; |
241 | 241 |
242 private: | 242 private: |
243 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); | 243 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); |
244 }; | 244 }; |
245 | 245 |
246 } // namespace cc | 246 } // namespace cc |
247 | 247 |
248 #endif // CC_TREES_LAYER_TREE_IMPL_H_ | 248 #endif // CC_TREES_LAYER_TREE_IMPL_H_ |
OLD | NEW |