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

Unified Diff: cc/CCRenderPass.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/CCQuadCullerTest.cpp ('k') | cc/CCRenderPassTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/CCRenderPass.h
diff --git a/cc/CCRenderPass.h b/cc/CCRenderPass.h
index b2ca8aa3dba987ba7ce48214479b916272c44c1d..19999971a6df1aa4ddf03a838378d46a568ae710 100644
--- a/cc/CCRenderPass.h
+++ b/cc/CCRenderPass.h
@@ -10,6 +10,7 @@
#include "CCSharedQuadState.h"
#include "FloatRect.h"
#include "SkColor.h"
+#include "cc/own_ptr_vector.h"
#include <public/WebFilterOperations.h>
#include <public/WebTransformationMatrix.h>
#include <wtf/HashMap.h>
@@ -24,7 +25,7 @@ class CCRenderSurface;
struct CCAppendQuadsData;
// A list of CCDrawQuad objects, sorted internally in front-to-back order.
-class CCQuadList : public Vector<OwnPtr<CCDrawQuad> > {
+class CCQuadList : public OwnPtrVector<CCDrawQuad> {
public:
typedef reverse_iterator backToFrontIterator;
typedef const_reverse_iterator constBackToFrontIterator;
@@ -35,7 +36,7 @@ public:
inline constBackToFrontIterator backToFrontEnd() const { return rend(); }
};
-typedef Vector<OwnPtr<CCSharedQuadState> > CCSharedQuadStateList;
+typedef OwnPtrVector<CCSharedQuadState> CCSharedQuadStateList;
class CCRenderPass {
WTF_MAKE_NONCOPYABLE(CCRenderPass);
« no previous file with comments | « cc/CCQuadCullerTest.cpp ('k') | cc/CCRenderPassTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698