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