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