| 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 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 void AsValueInto(base::trace_event::TracedValue* dict) const; | 130 void AsValueInto(base::trace_event::TracedValue* dict) const; |
| 131 | 131 |
| 132 // Other public methods | 132 // Other public methods |
| 133 // --------------------------------------------------------------------------- | 133 // --------------------------------------------------------------------------- |
| 134 LayerImpl* root_layer_for_testing() { | 134 LayerImpl* root_layer_for_testing() { |
| 135 return layer_list_.empty() ? nullptr : layer_list_[0]; | 135 return layer_list_.empty() ? nullptr : layer_list_[0]; |
| 136 } | 136 } |
| 137 RenderSurfaceImpl* RootRenderSurface() const; | 137 RenderSurfaceImpl* RootRenderSurface() const; |
| 138 bool LayerListIsEmpty() const; | 138 bool LayerListIsEmpty() const; |
| 139 void SetRootLayerForTesting(std::unique_ptr<LayerImpl>); | 139 void SetRootLayerForTesting(std::unique_ptr<LayerImpl>); |
| 140 void SetRootLayerFromLayerListForTesting(); | |
| 141 void OnCanDrawStateChangedForTree(); | 140 void OnCanDrawStateChangedForTree(); |
| 142 bool IsRootLayer(const LayerImpl* layer) const; | 141 bool IsRootLayer(const LayerImpl* layer) const; |
| 143 std::unique_ptr<OwnedLayerImplList> DetachLayers(); | 142 std::unique_ptr<OwnedLayerImplList> DetachLayers(); |
| 144 | 143 |
| 145 void SetPropertyTrees(PropertyTrees* property_trees); | 144 void SetPropertyTrees(PropertyTrees* property_trees); |
| 146 PropertyTrees* property_trees() { return &property_trees_; } | 145 PropertyTrees* property_trees() { return &property_trees_; } |
| 147 | 146 |
| 148 void UpdatePropertyTreesForBoundsDelta(); | 147 void UpdatePropertyTreesForBoundsDelta(); |
| 149 | 148 |
| 150 void PushPropertiesTo(LayerTreeImpl* tree_impl); | 149 void PushPropertiesTo(LayerTreeImpl* tree_impl); |
| (...skipping 436 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 587 | 586 |
| 588 std::unique_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; | 587 std::unique_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; |
| 589 | 588 |
| 590 private: | 589 private: |
| 591 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); | 590 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); |
| 592 }; | 591 }; |
| 593 | 592 |
| 594 } // namespace cc | 593 } // namespace cc |
| 595 | 594 |
| 596 #endif // CC_TREES_LAYER_TREE_IMPL_H_ | 595 #endif // CC_TREES_LAYER_TREE_IMPL_H_ |
| OLD | NEW |