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

Unified Diff: cc/output/direct_renderer.cc

Issue 1455023002: cc: Replace Pass() with std::move() in some subdirs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@pass-cc
Patch Set: pass-cc2: . Created 5 years, 1 month 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_unittest.cc ('k') | cc/output/gl_renderer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/output/direct_renderer.cc
diff --git a/cc/output/direct_renderer.cc b/cc/output/direct_renderer.cc
index 9ec397f434f74a957b4ad4be6059399fede02760..534b97e15b24f5480b7218496fb17dff3203d89b 100644
--- a/cc/output/direct_renderer.cc
+++ b/cc/output/direct_renderer.cc
@@ -183,7 +183,7 @@ void DirectRenderer::DecideRenderPassAllocationsForFrame(
scoped_ptr<ScopedResource> texture =
ScopedResource::Create(resource_provider_);
render_pass_textures_.set(render_passes_in_draw_order[i]->id,
- texture.Pass());
+ std::move(texture));
}
}
}
@@ -512,7 +512,7 @@ void DirectRenderer::DrawRenderPass(DrawingFrame* frame,
*it, gfx::RectF(quad.visible_rect),
quad.shared_quad_state->quad_to_target_transform, next_polygon_id++));
if (new_polygon->points().size() > 2u) {
- poly_list.push_back(new_polygon.Pass());
+ poly_list.push_back(std::move(new_polygon));
}
continue;
}
« no previous file with comments | « cc/output/delegating_renderer_unittest.cc ('k') | cc/output/gl_renderer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698