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

Unified Diff: cc/quads/render_pass.cc

Issue 2324723002: Speed up quad deserialization. (Closed)
Patch Set: comment added Created 4 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/quads/largest_draw_quad.cc ('k') | no next file » | 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 021352866802d152b287e7c0868b533625e6c989..1cdbdc4b1f635b80b7aa56b3891c790957bce72a 100644
--- a/cc/quads/render_pass.cc
+++ b/cc/quads/render_pass.cc
@@ -36,12 +36,12 @@ const size_t kDefaultNumQuadsToReserve = 128;
namespace cc {
QuadList::QuadList()
- : ListContainer<DrawQuad>(LargestDrawQuadSize(),
+ : ListContainer<DrawQuad>(LargestDrawQuadSubclassSize(),
kDefaultNumSharedQuadStatesToReserve) {}
QuadList::QuadList(size_t default_size_to_reserve)
- : ListContainer<DrawQuad>(LargestDrawQuadSize(), default_size_to_reserve) {
-}
+ : ListContainer<DrawQuad>(LargestDrawQuadSubclassSize(),
+ default_size_to_reserve) {}
std::unique_ptr<RenderPass> RenderPass::Create() {
return base::WrapUnique(new RenderPass());
« no previous file with comments | « cc/quads/largest_draw_quad.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698