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

Unified Diff: cc/quads/render_pass_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/quads/render_pass.cc ('k') | cc/surfaces/surface_aggregator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/quads/render_pass_unittest.cc
diff --git a/cc/quads/render_pass_unittest.cc b/cc/quads/render_pass_unittest.cc
index 9d123180a277a106d567a08dc5dfdc8b5da6283d..3ddf2692adc55d23e9604b331a0359e99b4c5e6f 100644
--- a/cc/quads/render_pass_unittest.cc
+++ b/cc/quads/render_pass_unittest.cc
@@ -52,12 +52,13 @@ static void CompareRenderPassLists(const RenderPassList& expected_list,
actual->shared_quad_state_list.size());
EXPECT_EQ(expected->quad_list.size(), actual->quad_list.size());
- for (size_t i = 0; i < expected->quad_list.size(); ++i) {
- EXPECT_EQ(expected->quad_list[i]->rect.ToString(),
- actual->quad_list[i]->rect.ToString());
- EXPECT_EQ(
- expected->quad_list[i]->shared_quad_state->content_bounds.ToString(),
- actual->quad_list[i]->shared_quad_state->content_bounds.ToString());
+ for (QuadList::Iterator exp_iter = expected->quad_list.begin(),
+ act_iter = actual->quad_list.begin();
+ exp_iter != expected->quad_list.end();
+ ++exp_iter, ++act_iter) {
+ EXPECT_EQ(exp_iter->rect.ToString(), act_iter->rect.ToString());
+ EXPECT_EQ(exp_iter->shared_quad_state->content_bounds.ToString(),
+ act_iter->shared_quad_state->content_bounds.ToString());
}
}
}
« no previous file with comments | « cc/quads/render_pass.cc ('k') | cc/surfaces/surface_aggregator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698