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

Unified Diff: cc/output/delegating_renderer.cc

Issue 683113005: Update from chromium https://crrev.com/302282 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 2 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/tiled_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 c4dc9fe217e16d57028a7b1149b6be812fe0bdfa..dc951af194f99d3f2a723b50578c5cf3e47dbea3 100644
--- a/cc/output/delegating_renderer.cc
+++ b/cc/output/delegating_renderer.cc
@@ -90,10 +90,9 @@ void DelegatingRenderer::DrawFrame(RenderPassList* render_passes_in_draw_order,
ResourceProvider::ResourceIdArray resources;
DrawQuad::ResourceIteratorCallback append_to_array =
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 (auto& quad : render_pass->quad_list)
- quad.IterateResources(append_to_array);
+ for (const auto& render_pass : out_data.render_pass_list) {
+ for (const auto& quad : render_pass->quad_list)
+ quad->IterateResources(append_to_array);
}
resource_provider_->PrepareSendToParent(resources, &out_data.resource_list);
}
« no previous file with comments | « cc/layers/tiled_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