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

Unified Diff: cc/output/delegating_renderer.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/video_layer_impl_unittest.cc ('k') | cc/output/direct_renderer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/output/delegating_renderer.cc
diff --git a/cc/output/delegating_renderer.cc b/cc/output/delegating_renderer.cc
index 143596bf5d2d0173680ccd6664b9aab4e9bbb4ae..de6c2b6129e2e907bcf34c8457cf3bec0fe7930c 100644
--- a/cc/output/delegating_renderer.cc
+++ b/cc/output/delegating_renderer.cc
@@ -93,8 +93,11 @@ void DelegatingRenderer::DrawFrame(RenderPassList* render_passes_in_draw_order,
base::Bind(&AppendToArray, &resources);
for (size_t i = 0; i < out_data.render_pass_list.size(); ++i) {
RenderPass* render_pass = out_data.render_pass_list.at(i);
- for (size_t j = 0; j < render_pass->quad_list.size(); ++j)
- render_pass->quad_list[j]->IterateResources(append_to_array);
+ for (QuadList::Iterator iter = render_pass->quad_list.begin();
+ iter != render_pass->quad_list.end();
+ ++iter) {
+ iter->IterateResources(append_to_array);
+ }
}
resource_provider_->PrepareSendToParent(resources, &out_data.resource_list);
}
« no previous file with comments | « cc/layers/video_layer_impl_unittest.cc ('k') | cc/output/direct_renderer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698