| 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 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 135 void SetRootLayer(std::unique_ptr<LayerImpl>); | 135 void SetRootLayer(std::unique_ptr<LayerImpl>); |
| 136 bool IsRootLayer(const LayerImpl* layer) const; | 136 bool IsRootLayer(const LayerImpl* layer) const; |
| 137 std::unique_ptr<OwnedLayerImplList> DetachLayers(); | 137 std::unique_ptr<OwnedLayerImplList> DetachLayers(); |
| 138 void ClearLayers(); | 138 void ClearLayers(); |
| 139 | 139 |
| 140 void SetPropertyTrees(const PropertyTrees property_trees) { | 140 void SetPropertyTrees(const PropertyTrees property_trees) { |
| 141 property_trees_ = property_trees; | 141 property_trees_ = property_trees; |
| 142 property_trees_.is_main_thread = false; | 142 property_trees_.is_main_thread = false; |
| 143 property_trees_.is_active = IsActiveTree(); | 143 property_trees_.is_active = IsActiveTree(); |
| 144 property_trees_.transform_tree.set_source_to_parent_updates_allowed(false); | 144 property_trees_.transform_tree.set_source_to_parent_updates_allowed(false); |
| 145 // The value of some effect node properties (like is_drawn) depends on |
| 146 // whether we are on the active tree or not. So, we need to update the |
| 147 // effect tree. |
| 148 if (IsActiveTree()) |
| 149 property_trees_.effect_tree.set_needs_update(true); |
| 145 } | 150 } |
| 146 PropertyTrees* property_trees() { return &property_trees_; } | 151 PropertyTrees* property_trees() { return &property_trees_; } |
| 147 | 152 |
| 148 void UpdatePropertyTreesForBoundsDelta(); | 153 void UpdatePropertyTreesForBoundsDelta(); |
| 149 | 154 |
| 150 void PushPropertiesTo(LayerTreeImpl* tree_impl); | 155 void PushPropertiesTo(LayerTreeImpl* tree_impl); |
| 151 | 156 |
| 152 LayerListIterator begin(); | 157 LayerListIterator begin(); |
| 153 LayerListIterator end(); | 158 LayerListIterator end(); |
| 154 LayerListReverseIterator rbegin(); | 159 LayerListReverseIterator rbegin(); |
| (...skipping 435 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 590 | 595 |
| 591 std::unique_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; | 596 std::unique_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; |
| 592 | 597 |
| 593 private: | 598 private: |
| 594 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); | 599 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); |
| 595 }; | 600 }; |
| 596 | 601 |
| 597 } // namespace cc | 602 } // namespace cc |
| 598 | 603 |
| 599 #endif // CC_TREES_LAYER_TREE_IMPL_H_ | 604 #endif // CC_TREES_LAYER_TREE_IMPL_H_ |
| OLD | NEW |