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

Unified Diff: cc/trees/layer_tree_impl.cc

Issue 1752263003: Add LayerTreeImpl end/begin/rend/rbegin (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 side-by-side diff with in-line comments
Download patch
« cc/trees/layer_tree_impl.h ('K') | « cc/trees/layer_tree_impl.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_tree_impl.cc
diff --git a/cc/trees/layer_tree_impl.cc b/cc/trees/layer_tree_impl.cc
index 96995554005ee5e5f84154cc98a1b4ceb544b831..8ab48330f9d7a541802b36a39892fd6af5248a97 100644
--- a/cc/trees/layer_tree_impl.cc
+++ b/cc/trees/layer_tree_impl.cc
@@ -375,6 +375,23 @@ void LayerTreeImpl::PushPropertiesTo(LayerTreeImpl* target_tree) {
target_tree->has_ever_been_drawn_ = false;
}
+
+LayerListIterator LayerTreeImpl::begin() {
+ return LayerListIterator(root_layer_.get());
+}
+
+LayerListIterator LayerTreeImpl::end() {
+ return LayerListIterator(nullptr);
+}
+
+LayerListReverseIterator LayerTreeImpl::rbegin() {
+ return LayerListReverseIterator(root_layer_.get());
+}
+
+LayerListReverseIterator LayerTreeImpl::rend() {
+ return LayerListReverseIterator(nullptr);
+}
+
void LayerTreeImpl::AddToElementMap(LayerImpl* layer) {
if (!layer->element_id() || !layer->mutable_properties())
return;
« cc/trees/layer_tree_impl.h ('K') | « cc/trees/layer_tree_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698