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

Unified Diff: cc/CCLayerImpl.h

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/CCLayerAnimationController.cpp ('k') | cc/CCLayerImpl.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/CCLayerImpl.h
diff --git a/cc/CCLayerImpl.h b/cc/CCLayerImpl.h
index 3509ffd694b1ff4792292b102dac47b8dcf8f317..666a6af9012d27f970b18e42ba78cd44f758a1b3 100644
--- a/cc/CCLayerImpl.h
+++ b/cc/CCLayerImpl.h
@@ -14,6 +14,7 @@
#include "IntRect.h"
#include "Region.h"
#include "SkColor.h"
+#include "cc/own_ptr_vector.h"
#include <public/WebFilterOperations.h>
#include <public/WebTransformationMatrix.h>
#include <string>
@@ -51,7 +52,7 @@ public:
// Tree structure.
CCLayerImpl* parent() const { return m_parent; }
- const Vector<OwnPtr<CCLayerImpl> >& children() const { return m_children; }
+ const OwnPtrVector<CCLayerImpl>& children() const { return m_children; }
void addChild(PassOwnPtr<CCLayerImpl>);
void removeFromParent();
void removeAllChildren();
@@ -275,7 +276,7 @@ private:
// Properties internal to CCLayerImpl
CCLayerImpl* m_parent;
- Vector<OwnPtr<CCLayerImpl> > m_children;
+ OwnPtrVector<CCLayerImpl> m_children;
// m_maskLayer can be temporarily stolen during tree sync, we need this ID to confirm newly assigned layer is still the previous one
int m_maskLayerId;
OwnPtr<CCLayerImpl> m_maskLayer;
« no previous file with comments | « cc/CCLayerAnimationController.cpp ('k') | cc/CCLayerImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698