Chromium Code Reviews| 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 SetPinchViewportLayerIds(int page_scale_layer_id, | |
|
enne (OOO)
2013/09/11 20:13:03
bikeshed: s/Pinch// to match the LTH functions?
wjmaclean
2013/09/12 18:16:47
Done.
Definitely! :-)
| |
| 122 int inner_viewport_scroll_layer_id, | |
| 123 int outer_viewport_scroll_layer_id); | |
| 121 void ApplySentScrollAndScaleDeltasFromAbortedCommit(); | 124 void ApplySentScrollAndScaleDeltasFromAbortedCommit(); |
| 122 void ApplyScrollDeltasSinceBeginFrame(); | 125 void ApplyScrollDeltasSinceBeginFrame(); |
| 123 | 126 |
| 124 SkColor background_color() const { return background_color_; } | 127 SkColor background_color() const { return background_color_; } |
| 125 void set_background_color(SkColor color) { background_color_ = color; } | 128 void set_background_color(SkColor color) { background_color_ = color; } |
| 126 | 129 |
| 127 bool has_transparent_background() const { | 130 bool has_transparent_background() const { |
| 128 return has_transparent_background_; | 131 return has_transparent_background_; |
| 129 } | 132 } |
| 130 void set_has_transparent_background(bool transparent) { | 133 void set_has_transparent_background(bool transparent) { |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 220 LayerTreeHostImpl* layer_tree_host_impl_; | 223 LayerTreeHostImpl* layer_tree_host_impl_; |
| 221 int source_frame_number_; | 224 int source_frame_number_; |
| 222 scoped_ptr<LayerImpl> root_layer_; | 225 scoped_ptr<LayerImpl> root_layer_; |
| 223 HeadsUpDisplayLayerImpl* hud_layer_; | 226 HeadsUpDisplayLayerImpl* hud_layer_; |
| 224 LayerImpl* root_scroll_layer_; | 227 LayerImpl* root_scroll_layer_; |
| 225 LayerImpl* currently_scrolling_layer_; | 228 LayerImpl* currently_scrolling_layer_; |
| 226 LayerScrollOffsetDelegate* root_layer_scroll_offset_delegate_; | 229 LayerScrollOffsetDelegate* root_layer_scroll_offset_delegate_; |
| 227 SkColor background_color_; | 230 SkColor background_color_; |
| 228 bool has_transparent_background_; | 231 bool has_transparent_background_; |
| 229 | 232 |
| 233 LayerImpl* page_scale_layer_; | |
| 234 LayerImpl* inner_viewport_scroll_layer_; | |
| 235 LayerImpl* outer_viewport_scroll_layer_; | |
| 236 | |
| 230 float page_scale_factor_; | 237 float page_scale_factor_; |
| 231 float page_scale_delta_; | 238 float page_scale_delta_; |
| 232 float sent_page_scale_delta_; | 239 float sent_page_scale_delta_; |
| 233 float min_page_scale_factor_; | 240 float min_page_scale_factor_; |
| 234 float max_page_scale_factor_; | 241 float max_page_scale_factor_; |
| 235 | 242 |
| 236 typedef base::hash_map<int, LayerImpl*> LayerIdMap; | 243 typedef base::hash_map<int, LayerImpl*> LayerIdMap; |
| 237 LayerIdMap layer_id_map_; | 244 LayerIdMap layer_id_map_; |
| 238 | 245 |
| 239 std::vector<LayerImpl*> layers_with_copy_output_request_; | 246 std::vector<LayerImpl*> layers_with_copy_output_request_; |
| (...skipping 17 matching lines...) Expand all Loading... | |
| 257 | 264 |
| 258 UIResourceRequestQueue ui_resource_request_queue_; | 265 UIResourceRequestQueue ui_resource_request_queue_; |
| 259 | 266 |
| 260 private: | 267 private: |
| 261 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); | 268 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); |
| 262 }; | 269 }; |
| 263 | 270 |
| 264 } // namespace cc | 271 } // namespace cc |
| 265 | 272 |
| 266 #endif // CC_TREES_LAYER_TREE_IMPL_H_ | 273 #endif // CC_TREES_LAYER_TREE_IMPL_H_ |
| OLD | NEW |