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

Unified Diff: cc/tree_synchronizer.cc

Issue 11418108: cc: Make the ScopedPtrVector and ScopedPtrDeque containers act like STL vector and deque. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add DCHECK Created 8 years, 1 month 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/scoped_ptr_vector.h ('K') | « cc/texture_uploader.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/tree_synchronizer.cc
diff --git a/cc/tree_synchronizer.cc b/cc/tree_synchronizer.cc
index 4c51a16a827cb58851e37e633b8e31707bbedc95..b93e037710b9e4564d41877b3dc3021b9c052653 100644
--- a/cc/tree_synchronizer.cc
+++ b/cc/tree_synchronizer.cc
@@ -32,8 +32,8 @@ void TreeSynchronizer::collectExistingLayerImplRecursive(ScopedPtrLayerImplMap&
return;
ScopedPtrVector<LayerImpl>& children = layerImpl->m_children;
- for (size_t i = 0; i < children.size(); ++i)
- collectExistingLayerImplRecursive(oldLayers, children.take(i));
+ for (ScopedPtrVector<LayerImpl>::iterator it = children.begin(); it != children.end(); ++it)
+ collectExistingLayerImplRecursive(oldLayers, children.take(it));
collectExistingLayerImplRecursive(oldLayers, layerImpl->m_maskLayer.Pass());
collectExistingLayerImplRecursive(oldLayers, layerImpl->m_replicaLayer.Pass());
« cc/scoped_ptr_vector.h ('K') | « cc/texture_uploader.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698