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

Unified Diff: cc/quads/draw_polygon.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/texture_mailbox_deleter.cc ('k') | cc/quads/render_pass.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/quads/draw_polygon.cc
diff --git a/cc/quads/draw_polygon.cc b/cc/quads/draw_polygon.cc
index fc9876e02d2d9b88a553e2704b8c438af7c1d795..b4f132a8f85ee6630cd84344f4f1b1dfb700ef99 100644
--- a/cc/quads/draw_polygon.cc
+++ b/cc/quads/draw_polygon.cc
@@ -85,7 +85,7 @@ scoped_ptr<DrawPolygon> DrawPolygon::CreateCopy() {
new_polygon->normal_.set_x(normal_.x());
new_polygon->normal_.set_y(normal_.y());
new_polygon->normal_.set_z(normal_.z());
- return new_polygon.Pass();
+ return new_polygon;
}
float DrawPolygon::SignedPointDistance(const gfx::Point3F& point) const {
@@ -294,11 +294,11 @@ bool DrawPolygon::Split(const DrawPolygon& splitter,
DCHECK_GE(poly2->points().size(), 3u);
if (SideCompare(*poly1, splitter) == BSP_FRONT) {
- *front = poly1.Pass();
- *back = poly2.Pass();
+ *front = std::move(poly1);
+ *back = std::move(poly2);
} else {
- *front = poly2.Pass();
- *back = poly1.Pass();
+ *front = std::move(poly2);
+ *back = std::move(poly1);
}
return true;
}
« no previous file with comments | « cc/output/texture_mailbox_deleter.cc ('k') | cc/quads/render_pass.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698