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

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 C++ range based loop 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..65c712d849eacf47c13f0d23248e207fab427d68 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, size_t quad_list_size);
private:
template <typename DrawQuadType>

Powered by Google App Engine
This is Rietveld 408576698