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

Unified Diff: cc/output/delegating_renderer.cc

Issue 12912010: cc: Convert non-const reference arguments to pointers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix ui/compositor Created 7 years, 9 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/output/delegating_renderer.h ('k') | cc/output/delegating_renderer_unittest.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 d6d24c2c8ee8a860bc528f032a40678cbb4a0eac..997b69962e94d47b02131add17074f38cbe3fbb9 100644
--- a/cc/output/delegating_renderer.cc
+++ b/cc/output/delegating_renderer.cc
@@ -139,7 +139,7 @@ static ResourceProvider::ResourceId AppendToArray(
}
void DelegatingRenderer::DrawFrame(
- RenderPassList& render_passes_in_draw_order) {
+ RenderPassList* render_passes_in_draw_order) {
TRACE_EVENT0("cc", "DelegatingRenderer::DrawFrame");
CompositorFrame out_frame;
@@ -151,15 +151,15 @@ void DelegatingRenderer::DrawFrame(
ResourceProvider::ResourceIdArray resources;
DrawQuad::ResourceIteratorCallback append_to_array =
base::Bind(&AppendToArray, &resources);
- for (size_t i = 0; i < render_passes_in_draw_order.size(); ++i) {
- RenderPass* render_pass = render_passes_in_draw_order[i];
+ for (size_t i = 0; i < render_passes_in_draw_order->size(); ++i) {
+ RenderPass* render_pass = render_passes_in_draw_order->at(i);
for (size_t j = 0; j < render_pass->quad_list.size(); ++j)
render_pass->quad_list[j]->IterateResources(append_to_array);
}
// Move the render passes and resources into the |out_frame|.
DelegatedFrameData& out_data = *out_frame.delegated_frame_data;
- out_data.render_pass_list.swap(render_passes_in_draw_order);
+ out_data.render_pass_list.swap(*render_passes_in_draw_order);
resource_provider_->PrepareSendToParent(resources, &out_data.resource_list);
output_surface_->SendFrameToParentCompositor(&out_frame);
« no previous file with comments | « cc/output/delegating_renderer.h ('k') | cc/output/delegating_renderer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698