| 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 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 // effect tree. | 147 // effect tree. |
| 148 if (IsActiveTree()) | 148 if (IsActiveTree()) |
| 149 property_trees_.effect_tree.set_needs_update(true); | 149 property_trees_.effect_tree.set_needs_update(true); |
| 150 } | 150 } |
| 151 PropertyTrees* property_trees() { return &property_trees_; } | 151 PropertyTrees* property_trees() { return &property_trees_; } |
| 152 | 152 |
| 153 void UpdatePropertyTreesForBoundsDelta(); | 153 void UpdatePropertyTreesForBoundsDelta(); |
| 154 | 154 |
| 155 void PushPropertiesTo(LayerTreeImpl* tree_impl); | 155 void PushPropertiesTo(LayerTreeImpl* tree_impl); |
| 156 | 156 |
| 157 LayerListIterator begin(); | 157 LayerListIterator<LayerImpl> begin(); |
| 158 LayerListIterator end(); | 158 LayerListIterator<LayerImpl> end(); |
| 159 LayerListReverseIterator rbegin(); | 159 LayerListReverseIterator<LayerImpl> rbegin(); |
| 160 LayerListReverseIterator rend(); | 160 LayerListReverseIterator<LayerImpl> rend(); |
| 161 | 161 |
| 162 // TODO(thakis): Consider marking this CC_EXPORT once we understand | 162 // TODO(thakis): Consider marking this CC_EXPORT once we understand |
| 163 // http://crbug.com/575700 better. | 163 // http://crbug.com/575700 better. |
| 164 struct ElementLayers { | 164 struct ElementLayers { |
| 165 // Transform and opacity mutations apply to this layer. | 165 // Transform and opacity mutations apply to this layer. |
| 166 LayerImpl* main = nullptr; | 166 LayerImpl* main = nullptr; |
| 167 // Scroll mutations apply to this layer. | 167 // Scroll mutations apply to this layer. |
| 168 LayerImpl* scroll = nullptr; | 168 LayerImpl* scroll = nullptr; |
| 169 }; | 169 }; |
| 170 | 170 |
| (...skipping 424 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 595 | 595 |
| 596 std::unique_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; | 596 std::unique_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; |
| 597 | 597 |
| 598 private: | 598 private: |
| 599 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); | 599 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); |
| 600 }; | 600 }; |
| 601 | 601 |
| 602 } // namespace cc | 602 } // namespace cc |
| 603 | 603 |
| 604 #endif // CC_TREES_LAYER_TREE_IMPL_H_ | 604 #endif // CC_TREES_LAYER_TREE_IMPL_H_ |
| OLD | NEW |