| 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 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 void SetRootLayer(std::unique_ptr<LayerImpl>); | 137 void SetRootLayer(std::unique_ptr<LayerImpl>); |
| 138 bool IsRootLayer(const LayerImpl* layer) const; | 138 bool IsRootLayer(const LayerImpl* layer) const; |
| 139 std::unique_ptr<OwnedLayerImplList> DetachLayers(); | 139 std::unique_ptr<OwnedLayerImplList> DetachLayers(); |
| 140 void ClearLayers(); | |
| 141 | 140 |
| 142 void SetPropertyTrees(PropertyTrees* property_trees); | 141 void SetPropertyTrees(PropertyTrees* property_trees); |
| 143 PropertyTrees* property_trees() { return &property_trees_; } | 142 PropertyTrees* property_trees() { return &property_trees_; } |
| 144 | 143 |
| 145 void UpdatePropertyTreesForBoundsDelta(); | 144 void UpdatePropertyTreesForBoundsDelta(); |
| 146 | 145 |
| 147 void PushPropertiesTo(LayerTreeImpl* tree_impl); | 146 void PushPropertiesTo(LayerTreeImpl* tree_impl); |
| 148 | 147 |
| 149 void MoveChangeTrackingToLayers(); | 148 void MoveChangeTrackingToLayers(); |
| 150 | 149 |
| (...skipping 429 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 580 std::unique_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; | 579 std::unique_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; |
| 581 | 580 |
| 582 private: | 581 private: |
| 583 void BuildLayerListForTesting(); | 582 void BuildLayerListForTesting(); |
| 584 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); | 583 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); |
| 585 }; | 584 }; |
| 586 | 585 |
| 587 } // namespace cc | 586 } // namespace cc |
| 588 | 587 |
| 589 #endif // CC_TREES_LAYER_TREE_IMPL_H_ | 588 #endif // CC_TREES_LAYER_TREE_IMPL_H_ |
| OLD | NEW |