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

Unified Diff: cc/quads/render_pass.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/quads/draw_polygon.cc ('k') | cc/quads/render_pass_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/quads/render_pass.cc
diff --git a/cc/quads/render_pass.cc b/cc/quads/render_pass.cc
index 3737f3c04ccd33b24934619f29d18ea304cbb524..ba5806f1a1279bfb638e432017913d69302444e6 100644
--- a/cc/quads/render_pass.cc
+++ b/cc/quads/render_pass.cc
@@ -88,7 +88,7 @@ scoped_ptr<RenderPass> RenderPass::Copy(RenderPassId new_id) const {
damage_rect,
transform_to_root_target,
has_transparent_background);
- return copy_pass.Pass();
+ return copy_pass;
}
// static
@@ -134,7 +134,7 @@ void RenderPass::CopyAll(const std::vector<scoped_ptr<RenderPass>>& in,
copy_pass->CopyFromAndAppendDrawQuad(quad, copy_shared_quad_state);
}
}
- out->push_back(copy_pass.Pass());
+ out->push_back(std::move(copy_pass));
}
}
« no previous file with comments | « cc/quads/draw_polygon.cc ('k') | cc/quads/render_pass_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698