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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 } | 103 } |
104 | 104 |
105 LayerImpl* RootScrollLayer() const; | 105 LayerImpl* RootScrollLayer() const; |
106 LayerImpl* RootClipLayer() const; | 106 LayerImpl* RootClipLayer() const; |
107 LayerImpl* CurrentlyScrollingLayer() const; | 107 LayerImpl* CurrentlyScrollingLayer() const; |
108 void SetCurrentlyScrollingLayer(LayerImpl* layer); | 108 void SetCurrentlyScrollingLayer(LayerImpl* layer); |
109 void ClearCurrentlyScrollingLayer(); | 109 void ClearCurrentlyScrollingLayer(); |
110 | 110 |
111 void FindRootScrollLayer(); | 111 void FindRootScrollLayer(); |
112 void UpdateMaxScrollOffset(); | 112 void UpdateMaxScrollOffset(); |
| 113 void SetPinchViewportLayerIds(int page_scale_layer_id, |
| 114 int inner_viewport_scroll_layer_id, |
| 115 int outer_viewport_scroll_layer_id); |
113 | 116 |
114 SkColor background_color() const { return background_color_; } | 117 SkColor background_color() const { return background_color_; } |
115 void set_background_color(SkColor color) { background_color_ = color; } | 118 void set_background_color(SkColor color) { background_color_ = color; } |
116 | 119 |
117 bool has_transparent_background() const { | 120 bool has_transparent_background() const { |
118 return has_transparent_background_; | 121 return has_transparent_background_; |
119 } | 122 } |
120 void set_has_transparent_background(bool transparent) { | 123 void set_has_transparent_background(bool transparent) { |
121 has_transparent_background_ = transparent; | 124 has_transparent_background_ = transparent; |
122 } | 125 } |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
203 LayerTreeHostImpl* layer_tree_host_impl_; | 206 LayerTreeHostImpl* layer_tree_host_impl_; |
204 int source_frame_number_; | 207 int source_frame_number_; |
205 scoped_ptr<LayerImpl> root_layer_; | 208 scoped_ptr<LayerImpl> root_layer_; |
206 HeadsUpDisplayLayerImpl* hud_layer_; | 209 HeadsUpDisplayLayerImpl* hud_layer_; |
207 LayerImpl* root_scroll_layer_; | 210 LayerImpl* root_scroll_layer_; |
208 LayerImpl* currently_scrolling_layer_; | 211 LayerImpl* currently_scrolling_layer_; |
209 LayerScrollOffsetDelegate* root_layer_scroll_offset_delegate_; | 212 LayerScrollOffsetDelegate* root_layer_scroll_offset_delegate_; |
210 SkColor background_color_; | 213 SkColor background_color_; |
211 bool has_transparent_background_; | 214 bool has_transparent_background_; |
212 | 215 |
| 216 LayerImpl* page_scale_layer_; |
| 217 LayerImpl* inner_viewport_scroll_layer_; |
| 218 LayerImpl* outer_viewport_scroll_layer_; |
| 219 |
213 float page_scale_factor_; | 220 float page_scale_factor_; |
214 float page_scale_delta_; | 221 float page_scale_delta_; |
215 float sent_page_scale_delta_; | 222 float sent_page_scale_delta_; |
216 float min_page_scale_factor_; | 223 float min_page_scale_factor_; |
217 float max_page_scale_factor_; | 224 float max_page_scale_factor_; |
218 | 225 |
219 typedef base::hash_map<int, LayerImpl*> LayerIdMap; | 226 typedef base::hash_map<int, LayerImpl*> LayerIdMap; |
220 LayerIdMap layer_id_map_; | 227 LayerIdMap layer_id_map_; |
221 | 228 |
222 // Persisted state for non-impl-side-painting. | 229 // Persisted state for non-impl-side-painting. |
(...skipping 12 matching lines...) Expand all Loading... |
235 bool needs_full_tree_sync_; | 242 bool needs_full_tree_sync_; |
236 | 243 |
237 ui::LatencyInfo latency_info_; | 244 ui::LatencyInfo latency_info_; |
238 | 245 |
239 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); | 246 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); |
240 }; | 247 }; |
241 | 248 |
242 } // namespace cc | 249 } // namespace cc |
243 | 250 |
244 #endif // CC_TREES_LAYER_TREE_IMPL_H_ | 251 #endif // CC_TREES_LAYER_TREE_IMPL_H_ |
OLD | NEW |