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 <list> | 8 #include <list> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 } | 110 } |
111 | 111 |
112 LayerImpl* RootScrollLayer() const; | 112 LayerImpl* RootScrollLayer() const; |
113 LayerImpl* RootContainerLayer() const; | 113 LayerImpl* RootContainerLayer() const; |
114 LayerImpl* CurrentlyScrollingLayer() const; | 114 LayerImpl* CurrentlyScrollingLayer() const; |
115 void SetCurrentlyScrollingLayer(LayerImpl* layer); | 115 void SetCurrentlyScrollingLayer(LayerImpl* layer); |
116 void ClearCurrentlyScrollingLayer(); | 116 void ClearCurrentlyScrollingLayer(); |
117 | 117 |
118 void FindRootScrollLayer(); | 118 void FindRootScrollLayer(); |
119 void UpdateMaxScrollOffset(); | 119 void UpdateMaxScrollOffset(); |
| 120 void SetPinchViewportLayerIds(int page_scale_layer_id, |
| 121 int inner_viewport_scroll_layer_id, |
| 122 int outer_viewport_scroll_layer_id); |
120 void ApplySentScrollAndScaleDeltasFromAbortedCommit(); | 123 void ApplySentScrollAndScaleDeltasFromAbortedCommit(); |
121 void ApplyScrollDeltasSinceBeginFrame(); | 124 void ApplyScrollDeltasSinceBeginFrame(); |
122 | 125 |
123 SkColor background_color() const { return background_color_; } | 126 SkColor background_color() const { return background_color_; } |
124 void set_background_color(SkColor color) { background_color_ = color; } | 127 void set_background_color(SkColor color) { background_color_ = color; } |
125 | 128 |
126 bool has_transparent_background() const { | 129 bool has_transparent_background() const { |
127 return has_transparent_background_; | 130 return has_transparent_background_; |
128 } | 131 } |
129 void set_has_transparent_background(bool transparent) { | 132 void set_has_transparent_background(bool transparent) { |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
219 LayerTreeHostImpl* layer_tree_host_impl_; | 222 LayerTreeHostImpl* layer_tree_host_impl_; |
220 int source_frame_number_; | 223 int source_frame_number_; |
221 scoped_ptr<LayerImpl> root_layer_; | 224 scoped_ptr<LayerImpl> root_layer_; |
222 HeadsUpDisplayLayerImpl* hud_layer_; | 225 HeadsUpDisplayLayerImpl* hud_layer_; |
223 LayerImpl* root_scroll_layer_; | 226 LayerImpl* root_scroll_layer_; |
224 LayerImpl* currently_scrolling_layer_; | 227 LayerImpl* currently_scrolling_layer_; |
225 LayerScrollOffsetDelegate* root_layer_scroll_offset_delegate_; | 228 LayerScrollOffsetDelegate* root_layer_scroll_offset_delegate_; |
226 SkColor background_color_; | 229 SkColor background_color_; |
227 bool has_transparent_background_; | 230 bool has_transparent_background_; |
228 | 231 |
| 232 LayerImpl* page_scale_layer_; |
| 233 LayerImpl* inner_viewport_scroll_layer_; |
| 234 LayerImpl* outer_viewport_scroll_layer_; |
| 235 |
229 float page_scale_factor_; | 236 float page_scale_factor_; |
230 float page_scale_delta_; | 237 float page_scale_delta_; |
231 float sent_page_scale_delta_; | 238 float sent_page_scale_delta_; |
232 float min_page_scale_factor_; | 239 float min_page_scale_factor_; |
233 float max_page_scale_factor_; | 240 float max_page_scale_factor_; |
234 | 241 |
235 typedef base::hash_map<int, LayerImpl*> LayerIdMap; | 242 typedef base::hash_map<int, LayerImpl*> LayerIdMap; |
236 LayerIdMap layer_id_map_; | 243 LayerIdMap layer_id_map_; |
237 | 244 |
238 std::vector<LayerImpl*> layers_with_copy_output_request_; | 245 std::vector<LayerImpl*> layers_with_copy_output_request_; |
(...skipping 17 matching lines...) Expand all Loading... |
256 | 263 |
257 UIResourceRequestQueue ui_resource_request_queue_; | 264 UIResourceRequestQueue ui_resource_request_queue_; |
258 | 265 |
259 private: | 266 private: |
260 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); | 267 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); |
261 }; | 268 }; |
262 | 269 |
263 } // namespace cc | 270 } // namespace cc |
264 | 271 |
265 #endif // CC_TREES_LAYER_TREE_IMPL_H_ | 272 #endif // CC_TREES_LAYER_TREE_IMPL_H_ |
OLD | NEW |