Chromium Code Reviews| 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 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 125 // Tracing methods. | 125 // Tracing methods. |
| 126 // --------------------------------------------------------------------------- | 126 // --------------------------------------------------------------------------- |
| 127 void GetAllPrioritizedTilesForTracing( | 127 void GetAllPrioritizedTilesForTracing( |
| 128 std::vector<PrioritizedTile>* prioritized_tiles) const; | 128 std::vector<PrioritizedTile>* prioritized_tiles) const; |
| 129 void AsValueInto(base::trace_event::TracedValue* dict) const; | 129 void AsValueInto(base::trace_event::TracedValue* dict) const; |
| 130 | 130 |
| 131 // Other public methods | 131 // Other public methods |
| 132 // --------------------------------------------------------------------------- | 132 // --------------------------------------------------------------------------- |
| 133 LayerImpl* root_layer() const { return root_layer_; } | 133 LayerImpl* root_layer() const { return root_layer_; } |
| 134 void SetRootLayer(scoped_ptr<LayerImpl>); | 134 void SetRootLayer(scoped_ptr<LayerImpl>); |
| 135 bool IsRootLayer(LayerImpl* layer) const; | |
|
ajuma
2016/03/23 23:27:28
Given that we have the version below that takes a
jaydasika
2016/03/24 00:14:38
Removed
| |
| 136 bool IsRootLayer(const LayerImpl* layer) const; | |
| 135 scoped_ptr<OwnedLayerImplList> DetachLayers(); | 137 scoped_ptr<OwnedLayerImplList> DetachLayers(); |
| 136 void ClearLayers(); | 138 void ClearLayers(); |
| 137 | 139 |
| 138 void SetPropertyTrees(const PropertyTrees property_trees) { | 140 void SetPropertyTrees(const PropertyTrees property_trees) { |
| 139 property_trees_ = property_trees; | 141 property_trees_ = property_trees; |
| 140 property_trees_.is_main_thread = false; | 142 property_trees_.is_main_thread = false; |
| 141 property_trees_.is_active = IsActiveTree(); | 143 property_trees_.is_active = IsActiveTree(); |
| 142 property_trees_.transform_tree.set_source_to_parent_updates_allowed(false); | 144 property_trees_.transform_tree.set_source_to_parent_updates_allowed(false); |
| 143 } | 145 } |
| 144 PropertyTrees* property_trees() { return &property_trees_; } | 146 PropertyTrees* property_trees() { return &property_trees_; } |
| (...skipping 442 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 587 | 589 |
| 588 scoped_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; | 590 scoped_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; |
| 589 | 591 |
| 590 private: | 592 private: |
| 591 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); | 593 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); |
| 592 }; | 594 }; |
| 593 | 595 |
| 594 } // namespace cc | 596 } // namespace cc |
| 595 | 597 |
| 596 #endif // CC_TREES_LAYER_TREE_IMPL_H_ | 598 #endif // CC_TREES_LAYER_TREE_IMPL_H_ |
| OLD | NEW |