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

Unified Diff: cc/quads/draw_quad_unittest.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/ipc/cc_param_traits.cc ('k') | cc/quads/largest_draw_quad.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/quads/draw_quad_unittest.cc
diff --git a/cc/quads/draw_quad_unittest.cc b/cc/quads/draw_quad_unittest.cc
index 9bbb052ada9ebc5b4c0f159831faaa7af150fd4b..273cd2aa5dbf8ac76304b1f342b8b6c03fc986bf 100644
--- a/cc/quads/draw_quad_unittest.cc
+++ b/cc/quads/draw_quad_unittest.cc
@@ -946,21 +946,20 @@ TEST(DrawQuadTest, LargestQuadType) {
largest = std::max(largest, sizeof(StreamVideoDrawQuad));
break;
case DrawQuad::YUV_VIDEO_CONTENT:
- largest = std::max(largest,
- sizeof(YUVVideoDrawQuad) + sizeof(gfx::ColorSpace));
+ largest = std::max(largest, sizeof(YUVVideoDrawQuad));
break;
case DrawQuad::INVALID:
break;
}
}
- EXPECT_EQ(LargestDrawQuadSize(), largest);
+ EXPECT_EQ(LargestDrawQuadSubclassSize(), largest);
if (!HasFailure())
return;
// On failure, output the size of all quads for debugging.
LOG(ERROR) << "largest " << largest;
- LOG(ERROR) << "kLargestDrawQuad " << LargestDrawQuadSize();
+ LOG(ERROR) << "kLargestDrawQuad " << LargestDrawQuadSubclassSize();
for (int i = 0; i <= DrawQuad::MATERIAL_LAST; ++i) {
switch (static_cast<DrawQuad::Material>(i)) {
case DrawQuad::DEBUG_BORDER:
« no previous file with comments | « cc/ipc/cc_param_traits.cc ('k') | cc/quads/largest_draw_quad.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698