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

Unified Diff: cc/layers/picture_layer_impl_unittest.cc

Issue 448303002: Use custom ListContainer to allocate DrawQuads (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@perftest
Patch Set: change header files to try fix compile error 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
« no previous file with comments | « cc/layers/picture_image_layer_impl_unittest.cc ('k') | cc/layers/scrollbar_layer_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/picture_layer_impl_unittest.cc
diff --git a/cc/layers/picture_layer_impl_unittest.cc b/cc/layers/picture_layer_impl_unittest.cc
index 9b90e880ef208d2ffbe2aa2ccf54bcc5d41dfbae..c72d19c2943d245c346a10d1bb2326e55153053f 100644
--- a/cc/layers/picture_layer_impl_unittest.cc
+++ b/cc/layers/picture_layer_impl_unittest.cc
@@ -1387,7 +1387,8 @@ TEST_F(PictureLayerImplTest, DisallowTileDrawQuads) {
active_layer_->DidDraw(NULL);
ASSERT_EQ(1U, render_pass->quad_list.size());
- EXPECT_EQ(DrawQuad::PICTURE_CONTENT, render_pass->quad_list[0]->material);
+ EXPECT_EQ(DrawQuad::PICTURE_CONTENT,
+ render_pass->quad_list.front()->material);
}
TEST_F(PictureLayerImplTest, MarkRequiredNullTiles) {
@@ -1704,10 +1705,10 @@ TEST_F(PictureLayerImplTest,
// All high res tiles drew, and the one ideal res tile drew.
ASSERT_GT(render_pass->quad_list.size(), 9u);
EXPECT_EQ(gfx::SizeF(99.f, 99.f),
- TileDrawQuad::MaterialCast(render_pass->quad_list[0])
+ TileDrawQuad::MaterialCast(render_pass->quad_list.front())
->tex_coord_rect.size());
EXPECT_EQ(gfx::SizeF(49.5f, 49.5f),
- TileDrawQuad::MaterialCast(render_pass->quad_list[1])
+ TileDrawQuad::MaterialCast(render_pass->quad_list.ElementAt(1))
->tex_coord_rect.size());
// Neither the high res nor the ideal tiles were considered as incomplete.
« no previous file with comments | « cc/layers/picture_image_layer_impl_unittest.cc ('k') | cc/layers/scrollbar_layer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698