Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(404)

Side by Side Diff: cc/trees/layer_tree_impl.h

Issue 1887703002: cc: Add a main thread LayerListIterator (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 property_trees_.is_main_thread = false; 141 property_trees_.is_main_thread = false;
142 property_trees_.is_active = IsActiveTree(); 142 property_trees_.is_active = IsActiveTree();
143 property_trees_.transform_tree.set_source_to_parent_updates_allowed(false); 143 property_trees_.transform_tree.set_source_to_parent_updates_allowed(false);
144 } 144 }
145 PropertyTrees* property_trees() { return &property_trees_; } 145 PropertyTrees* property_trees() { return &property_trees_; }
146 146
147 void UpdatePropertyTreesForBoundsDelta(); 147 void UpdatePropertyTreesForBoundsDelta();
148 148
149 void PushPropertiesTo(LayerTreeImpl* tree_impl); 149 void PushPropertiesTo(LayerTreeImpl* tree_impl);
150 150
151 LayerListIterator begin(); 151 LayerListIterator<LayerImpl> begin();
152 LayerListIterator end(); 152 LayerListIterator<LayerImpl> end();
153 LayerListReverseIterator rbegin(); 153 LayerListReverseIterator<LayerImpl> rbegin();
154 LayerListReverseIterator rend(); 154 LayerListReverseIterator<LayerImpl> rend();
155 155
156 // TODO(thakis): Consider marking this CC_EXPORT once we understand 156 // TODO(thakis): Consider marking this CC_EXPORT once we understand
157 // http://crbug.com/575700 better. 157 // http://crbug.com/575700 better.
158 struct ElementLayers { 158 struct ElementLayers {
159 // Transform and opacity mutations apply to this layer. 159 // Transform and opacity mutations apply to this layer.
160 LayerImpl* main = nullptr; 160 LayerImpl* main = nullptr;
161 // Scroll mutations apply to this layer. 161 // Scroll mutations apply to this layer.
162 LayerImpl* scroll = nullptr; 162 LayerImpl* scroll = nullptr;
163 }; 163 };
164 164
(...skipping 423 matching lines...) Expand 10 before | Expand all | Expand 10 after
588 588
589 scoped_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; 589 scoped_ptr<PendingPageScaleAnimation> pending_page_scale_animation_;
590 590
591 private: 591 private:
592 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); 592 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl);
593 }; 593 };
594 594
595 } // namespace cc 595 } // namespace cc
596 596
597 #endif // CC_TREES_LAYER_TREE_IMPL_H_ 597 #endif // CC_TREES_LAYER_TREE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698