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

Unified Diff: cc/trees/layer_tree_host_pixeltest_on_demand_raster.cc

Issue 448303002: Use custom ListContainer to allocate DrawQuads (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@perftest
Patch Set: fix rebase 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/trees/layer_tree_host_pixeltest_on_demand_raster.cc
diff --git a/cc/trees/layer_tree_host_pixeltest_on_demand_raster.cc b/cc/trees/layer_tree_host_pixeltest_on_demand_raster.cc
index 1553fa034dfe79d445487f7bc7702f0d5faa9f7c..36b666c201ed648ea031e3e77bbf6b4e8fdde170 100644
--- a/cc/trees/layer_tree_host_pixeltest_on_demand_raster.cc
+++ b/cc/trees/layer_tree_host_pixeltest_on_demand_raster.cc
@@ -47,8 +47,10 @@ class LayerTreeHostOnDemandRasterPixelTest : public LayerTreePixelTest {
AppendQuadsData data;
picture_layer->AppendQuads(render_pass.get(), occlusion_tracker, &data);
- for (size_t i = 0; i < render_pass->quad_list.size(); ++i)
- EXPECT_EQ(render_pass->quad_list[i]->material, DrawQuad::PICTURE_CONTENT);
+ for (QuadList::Iterator iter = render_pass->quad_list.begin();
+ iter != render_pass->quad_list.end();
+ ++iter)
+ EXPECT_EQ(iter->material, DrawQuad::PICTURE_CONTENT);
// Triggers pixel readback and ends the test.
LayerTreePixelTest::SwapBuffersOnThread(host_impl, result);

Powered by Google App Engine
This is Rietveld 408576698