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> |
| 11 #include <unordered_map> | 11 #include <unordered_map> |
| 12 #include <vector> | 12 #include <vector> |
| 13 | 13 |
| 14 #include "base/macros.h" | 14 #include "base/macros.h" |
| 15 #include "base/values.h" | 15 #include "base/values.h" |
| 16 #include "cc/base/synced_property.h" | 16 #include "cc/base/synced_property.h" |
| 17 #include "cc/input/event_listener_properties.h" | 17 #include "cc/input/event_listener_properties.h" |
| 18 #include "cc/input/layer_selection_bound.h" | 18 #include "cc/input/layer_selection_bound.h" |
| 19 #include "cc/layers/layer_impl.h" | 19 #include "cc/layers/layer_impl.h" |
| 20 #include "cc/layers/layer_list_iterator.h" | |
| 20 #include "cc/output/begin_frame_args.h" | 21 #include "cc/output/begin_frame_args.h" |
| 21 #include "cc/output/renderer.h" | 22 #include "cc/output/renderer.h" |
| 22 #include "cc/output/swap_promise.h" | 23 #include "cc/output/swap_promise.h" |
| 23 #include "cc/resources/ui_resource_client.h" | 24 #include "cc/resources/ui_resource_client.h" |
| 24 #include "cc/trees/layer_tree_host_impl.h" | 25 #include "cc/trees/layer_tree_host_impl.h" |
| 25 #include "cc/trees/property_tree.h" | 26 #include "cc/trees/property_tree.h" |
| 26 | 27 |
| 27 namespace base { | 28 namespace base { |
| 28 namespace trace_event { | 29 namespace trace_event { |
| 29 class TracedValue; | 30 class TracedValue; |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 135 void SetPropertyTrees(const PropertyTrees& property_trees) { | 136 void SetPropertyTrees(const PropertyTrees& property_trees) { |
| 136 property_trees_ = property_trees; | 137 property_trees_ = property_trees; |
| 137 property_trees_.transform_tree.set_source_to_parent_updates_allowed(false); | 138 property_trees_.transform_tree.set_source_to_parent_updates_allowed(false); |
| 138 } | 139 } |
| 139 PropertyTrees* property_trees() { return &property_trees_; } | 140 PropertyTrees* property_trees() { return &property_trees_; } |
| 140 | 141 |
| 141 void UpdatePropertyTreesForBoundsDelta(); | 142 void UpdatePropertyTreesForBoundsDelta(); |
| 142 | 143 |
| 143 void PushPropertiesTo(LayerTreeImpl* tree_impl); | 144 void PushPropertiesTo(LayerTreeImpl* tree_impl); |
| 144 | 145 |
| 146 LayerListIterator begin(); | |
|
danakj
2016/03/03 00:35:50
Can you leave a comment saying what these iterate
| |
| 147 LayerListIterator end(); | |
| 148 LayerListReverseIterator rbegin(); | |
| 149 LayerListReverseIterator rend(); | |
| 150 | |
| 145 // TODO(thakis): Consider marking this CC_EXPORT once we understand | 151 // TODO(thakis): Consider marking this CC_EXPORT once we understand |
| 146 // http://crbug.com/575700 better. | 152 // http://crbug.com/575700 better. |
| 147 struct ElementLayers { | 153 struct ElementLayers { |
| 148 // Transform and opacity mutations apply to this layer. | 154 // Transform and opacity mutations apply to this layer. |
| 149 LayerImpl* main = nullptr; | 155 LayerImpl* main = nullptr; |
| 150 // Scroll mutations apply to this layer. | 156 // Scroll mutations apply to this layer. |
| 151 LayerImpl* scroll = nullptr; | 157 LayerImpl* scroll = nullptr; |
| 152 }; | 158 }; |
| 153 | 159 |
| 154 void AddToElementMap(LayerImpl* layer); | 160 void AddToElementMap(LayerImpl* layer); |
| (...skipping 403 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 558 | 564 |
| 559 scoped_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; | 565 scoped_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; |
| 560 | 566 |
| 561 private: | 567 private: |
| 562 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); | 568 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); |
| 563 }; | 569 }; |
| 564 | 570 |
| 565 } // namespace cc | 571 } // namespace cc |
| 566 | 572 |
| 567 #endif // CC_TREES_LAYER_TREE_IMPL_H_ | 573 #endif // CC_TREES_LAYER_TREE_IMPL_H_ |
| OLD | NEW |