| 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 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 127 | 127 |
| 128 // Tracing methods. | 128 // Tracing methods. |
| 129 // --------------------------------------------------------------------------- | 129 // --------------------------------------------------------------------------- |
| 130 void GetAllPrioritizedTilesForTracing( | 130 void GetAllPrioritizedTilesForTracing( |
| 131 std::vector<PrioritizedTile>* prioritized_tiles) const; | 131 std::vector<PrioritizedTile>* prioritized_tiles) const; |
| 132 void AsValueInto(base::trace_event::TracedValue* dict) const; | 132 void AsValueInto(base::trace_event::TracedValue* dict) const; |
| 133 | 133 |
| 134 // Other public methods | 134 // Other public methods |
| 135 // --------------------------------------------------------------------------- | 135 // --------------------------------------------------------------------------- |
| 136 LayerImpl* root_layer() const { return root_layer_; } | 136 LayerImpl* root_layer() const { return root_layer_; } |
| 137 RenderSurfaceImpl* RootRenderSurface() const; |
| 138 bool LayerListIsEmpty() const; |
| 137 void SetRootLayer(std::unique_ptr<LayerImpl>); | 139 void SetRootLayer(std::unique_ptr<LayerImpl>); |
| 138 void SetRootLayerFromLayerList(); | 140 void SetRootLayerFromLayerList(); |
| 139 bool IsRootLayer(const LayerImpl* layer) const; | 141 bool IsRootLayer(const LayerImpl* layer) const; |
| 140 std::unique_ptr<OwnedLayerImplList> DetachLayers(); | 142 std::unique_ptr<OwnedLayerImplList> DetachLayers(); |
| 141 | 143 |
| 142 void SetPropertyTrees(PropertyTrees* property_trees); | 144 void SetPropertyTrees(PropertyTrees* property_trees); |
| 143 PropertyTrees* property_trees() { return &property_trees_; } | 145 PropertyTrees* property_trees() { return &property_trees_; } |
| 144 | 146 |
| 145 void UpdatePropertyTreesForBoundsDelta(); | 147 void UpdatePropertyTreesForBoundsDelta(); |
| 146 | 148 |
| (...skipping 436 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 583 | 585 |
| 584 std::unique_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; | 586 std::unique_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; |
| 585 | 587 |
| 586 private: | 588 private: |
| 587 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); | 589 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); |
| 588 }; | 590 }; |
| 589 | 591 |
| 590 } // namespace cc | 592 } // namespace cc |
| 591 | 593 |
| 592 #endif // CC_TREES_LAYER_TREE_IMPL_H_ | 594 #endif // CC_TREES_LAYER_TREE_IMPL_H_ |
| OLD | NEW |