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

Unified Diff: cc/quads/render_pass.cc

Issue 2064833002: Implement DrawQuad StructTraits (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix move constructor Created 4 years, 6 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/quads/render_pass.h ('k') | cc/quads/render_pass_draw_quad.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/quads/render_pass.cc
diff --git a/cc/quads/render_pass.cc b/cc/quads/render_pass.cc
index 125291f0ca5063274f15e12822fecf67572ad7c3..34f24e31d5f62efd0cfa37d7281f30a0be00e0fb 100644
--- a/cc/quads/render_pass.cc
+++ b/cc/quads/render_pass.cc
@@ -35,6 +35,10 @@ const size_t kDefaultNumQuadsToReserve = 128;
namespace cc {
+QuadList::QuadList()
+ : ListContainer<DrawQuad>(LargestDrawQuadSize(),
+ kDefaultNumSharedQuadStatesToReserve) {}
+
QuadList::QuadList(size_t default_size_to_reserve)
: ListContainer<DrawQuad>(LargestDrawQuadSize(), default_size_to_reserve) {
}
« no previous file with comments | « cc/quads/render_pass.h ('k') | cc/quads/render_pass_draw_quad.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698