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 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
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 void MoveChangeTrackingToLayers(); | 157 void MoveChangeTrackingToLayers(); |
158 | 158 |
159 LayerListIterator<LayerImpl> begin(); | 159 LayerListIterator<LayerImpl> begin(); |
160 LayerListIterator<LayerImpl> end(); | 160 LayerListIterator<LayerImpl> end(); |
161 const LayerListIterator<LayerImpl> begin() const; | |
vmpstr
2016/05/05 18:20:59
Making the return type const here is not very usef
sunxd
2016/05/05 19:25:25
Done.
| |
162 const LayerListIterator<LayerImpl> end() const; | |
161 LayerListReverseIterator<LayerImpl> rbegin(); | 163 LayerListReverseIterator<LayerImpl> rbegin(); |
162 LayerListReverseIterator<LayerImpl> rend(); | 164 LayerListReverseIterator<LayerImpl> rend(); |
163 | 165 |
164 // TODO(thakis): Consider marking this CC_EXPORT once we understand | 166 // TODO(thakis): Consider marking this CC_EXPORT once we understand |
165 // http://crbug.com/575700 better. | 167 // http://crbug.com/575700 better. |
166 struct ElementLayers { | 168 struct ElementLayers { |
167 // Transform and opacity mutations apply to this layer. | 169 // Transform and opacity mutations apply to this layer. |
168 LayerImpl* main = nullptr; | 170 LayerImpl* main = nullptr; |
169 // Scroll mutations apply to this layer. | 171 // Scroll mutations apply to this layer. |
170 LayerImpl* scroll = nullptr; | 172 LayerImpl* scroll = nullptr; |
(...skipping 417 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
588 | 590 |
589 std::unique_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; | 591 std::unique_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; |
590 | 592 |
591 private: | 593 private: |
592 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); | 594 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); |
593 }; | 595 }; |
594 | 596 |
595 } // namespace cc | 597 } // namespace cc |
596 | 598 |
597 #endif // CC_TREES_LAYER_TREE_IMPL_H_ | 599 #endif // CC_TREES_LAYER_TREE_IMPL_H_ |
OLD | NEW |