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 <map> | 8 #include <map> |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 LayerImpl* root_layer_for_testing() { | 122 LayerImpl* root_layer_for_testing() { |
123 return layer_list_.empty() ? nullptr : layer_list_[0]; | 123 return layer_list_.empty() ? nullptr : layer_list_[0]; |
124 } | 124 } |
125 RenderSurfaceImpl* RootRenderSurface() const; | 125 RenderSurfaceImpl* RootRenderSurface() const; |
126 bool LayerListIsEmpty() const; | 126 bool LayerListIsEmpty() const; |
127 void SetRootLayerForTesting(std::unique_ptr<LayerImpl>); | 127 void SetRootLayerForTesting(std::unique_ptr<LayerImpl>); |
128 void OnCanDrawStateChangedForTree(); | 128 void OnCanDrawStateChangedForTree(); |
129 bool IsRootLayer(const LayerImpl* layer) const; | 129 bool IsRootLayer(const LayerImpl* layer) const; |
130 std::unique_ptr<OwnedLayerImplList> DetachLayers(); | 130 std::unique_ptr<OwnedLayerImplList> DetachLayers(); |
131 | 131 |
132 void SetPropertyTrees(PropertyTrees* property_trees); | 132 void SetPropertyTrees(PropertyTrees* property_trees, |
| 133 PropertyTrees* test_property_trees_with_new_clip_tree); |
133 PropertyTrees* property_trees() { return &property_trees_; } | 134 PropertyTrees* property_trees() { return &property_trees_; } |
| 135 PropertyTrees* test_property_trees_with_new_clip_tree() { |
| 136 if (!test_property_trees_with_new_clip_tree_) |
| 137 test_property_trees_with_new_clip_tree_ = new PropertyTrees(); |
| 138 return test_property_trees_with_new_clip_tree_; |
| 139 } |
134 | 140 |
135 void UpdatePropertyTreesForBoundsDelta(); | 141 void UpdatePropertyTreesForBoundsDelta(); |
136 | 142 |
137 void PushPropertiesTo(LayerTreeImpl* tree_impl); | 143 void PushPropertiesTo(LayerTreeImpl* tree_impl); |
138 | 144 |
139 void MoveChangeTrackingToLayers(); | 145 void MoveChangeTrackingToLayers(); |
140 | 146 |
141 void ForceRecalculateRasterScales(); | 147 void ForceRecalculateRasterScales(); |
142 | 148 |
143 LayerImplList::const_iterator begin() const; | 149 LayerImplList::const_iterator begin() const; |
(...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
469 void DidUpdatePageScale(); | 475 void DidUpdatePageScale(); |
470 void PushBrowserControls(const float* top_controls_shown_ratio); | 476 void PushBrowserControls(const float* top_controls_shown_ratio); |
471 bool ClampBrowserControlsShownRatio(); | 477 bool ClampBrowserControlsShownRatio(); |
472 | 478 |
473 LayerTreeHostImpl* layer_tree_host_impl_; | 479 LayerTreeHostImpl* layer_tree_host_impl_; |
474 int source_frame_number_; | 480 int source_frame_number_; |
475 int is_first_frame_after_commit_tracker_; | 481 int is_first_frame_after_commit_tracker_; |
476 LayerImpl* root_layer_for_testing_; | 482 LayerImpl* root_layer_for_testing_; |
477 HeadsUpDisplayLayerImpl* hud_layer_; | 483 HeadsUpDisplayLayerImpl* hud_layer_; |
478 PropertyTrees property_trees_; | 484 PropertyTrees property_trees_; |
| 485 PropertyTrees* test_property_trees_with_new_clip_tree_; |
479 SkColor background_color_; | 486 SkColor background_color_; |
480 bool has_transparent_background_; | 487 bool has_transparent_background_; |
481 | 488 |
482 int last_scrolled_layer_id_; | 489 int last_scrolled_layer_id_; |
483 int overscroll_elasticity_layer_id_; | 490 int overscroll_elasticity_layer_id_; |
484 int page_scale_layer_id_; | 491 int page_scale_layer_id_; |
485 int inner_viewport_scroll_layer_id_; | 492 int inner_viewport_scroll_layer_id_; |
486 int outer_viewport_scroll_layer_id_; | 493 int outer_viewport_scroll_layer_id_; |
487 | 494 |
488 LayerSelection selection_; | 495 LayerSelection selection_; |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
561 | 568 |
562 std::unique_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; | 569 std::unique_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; |
563 | 570 |
564 private: | 571 private: |
565 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); | 572 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); |
566 }; | 573 }; |
567 | 574 |
568 } // namespace cc | 575 } // namespace cc |
569 | 576 |
570 #endif // CC_TREES_LAYER_TREE_IMPL_H_ | 577 #endif // CC_TREES_LAYER_TREE_IMPL_H_ |
OLD | NEW |