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

Unified Diff: cc/quads/render_pass.h

Issue 551013002: Use Custome ListContainer to Allocate SharedQuadState (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@DQAllo
Patch Set: use ElementAt for unittest Created 6 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
Index: cc/quads/render_pass.h
diff --git a/cc/quads/render_pass.h b/cc/quads/render_pass.h
index db42faf1e3ffa5cf2aeddc509116bc1f8a196314..c8da01e5a9787cc35bfb06a115e3a53f1af39f6e 100644
--- a/cc/quads/render_pass.h
+++ b/cc/quads/render_pass.h
@@ -47,7 +47,7 @@ class QuadList : public ListContainer<DrawQuad> {
inline ConstBackToFrontIterator BackToFrontEnd() const { return rend(); }
};
-typedef ScopedPtrVector<SharedQuadState> SharedQuadStateList;
+typedef ListContainer<SharedQuadState> SharedQuadStateList;
class CC_EXPORT RenderPass {
public:
@@ -55,6 +55,8 @@ class CC_EXPORT RenderPass {
static scoped_ptr<RenderPass> Create();
static scoped_ptr<RenderPass> Create(size_t num_layers);
+ static scoped_ptr<RenderPass> Create(size_t shared_quad_state_list_size,
+ size_t quad_list_size);
// A shallow copy of the render pass, which does not include its quads or copy
// requests.
@@ -117,6 +119,7 @@ class CC_EXPORT RenderPass {
protected:
explicit RenderPass(size_t num_layers);
RenderPass();
+ RenderPass(size_t shared_quad_state_list, size_t quad_list_size);
danakj 2014/09/26 20:40:55 sqs_list_size <- size missing
weiliangc 2014/10/01 23:02:00 Done.
private:
template <typename DrawQuadType>

Powered by Google App Engine
This is Rietveld 408576698