| 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 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 // --------------------------------------------------------------------------- | 115 // --------------------------------------------------------------------------- |
| 116 void GetAllPrioritizedTilesForTracing( | 116 void GetAllPrioritizedTilesForTracing( |
| 117 std::vector<PrioritizedTile>* prioritized_tiles) const; | 117 std::vector<PrioritizedTile>* prioritized_tiles) const; |
| 118 void AsValueInto(base::trace_event::TracedValue* dict) const; | 118 void AsValueInto(base::trace_event::TracedValue* dict) const; |
| 119 | 119 |
| 120 // Other public methods | 120 // Other public methods |
| 121 // --------------------------------------------------------------------------- | 121 // --------------------------------------------------------------------------- |
| 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 const 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* property_trees() { return &property_trees_; } | 133 PropertyTrees* property_trees() { return &property_trees_; } |
| 134 | 134 |
| 135 void PushPropertiesTo(LayerTreeImpl* tree_impl); | 135 void PushPropertiesTo(LayerTreeImpl* tree_impl); |
| (...skipping 446 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 582 | 582 |
| 583 std::unique_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; | 583 std::unique_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; |
| 584 | 584 |
| 585 private: | 585 private: |
| 586 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); | 586 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); |
| 587 }; | 587 }; |
| 588 | 588 |
| 589 } // namespace cc | 589 } // namespace cc |
| 590 | 590 |
| 591 #endif // CC_TREES_LAYER_TREE_IMPL_H_ | 591 #endif // CC_TREES_LAYER_TREE_IMPL_H_ |
| OLD | NEW |