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

Unified Diff: cc/TreeSynchronizer.cpp

Issue 10940002: Add wrapper container for a vector of OwnPtr<T> (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 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
« no previous file with comments | « cc/ScrollbarLayerChromiumTest.cpp ('k') | cc/TreeSynchronizerTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/TreeSynchronizer.cpp
diff --git a/cc/TreeSynchronizer.cpp b/cc/TreeSynchronizer.cpp
index 9b42e7330a6df0d6d42494b478b2a36e1a19d344..9559cc2ad5c64bf6e2bbcd3a6143828f88c010ac 100644
--- a/cc/TreeSynchronizer.cpp
+++ b/cc/TreeSynchronizer.cpp
@@ -36,9 +36,9 @@ void TreeSynchronizer::collectExistingCCLayerImplRecursive(OwnPtrCCLayerImplMap&
if (!ccLayerImpl)
return;
- Vector<OwnPtr<CCLayerImpl> >& children = ccLayerImpl->m_children;
+ OwnPtrVector<CCLayerImpl>& children = ccLayerImpl->m_children;
for (size_t i = 0; i < children.size(); ++i)
- collectExistingCCLayerImplRecursive(oldLayers, children[i].release());
+ collectExistingCCLayerImplRecursive(oldLayers, children.take(i));
collectExistingCCLayerImplRecursive(oldLayers, ccLayerImpl->m_maskLayer.release());
collectExistingCCLayerImplRecursive(oldLayers, ccLayerImpl->m_replicaLayer.release());
« no previous file with comments | « cc/ScrollbarLayerChromiumTest.cpp ('k') | cc/TreeSynchronizerTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698