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

Unified Diff: mojo/converters/surfaces/surfaces_utils.cc

Issue 1538823002: Convert Pass()→std::move() in mojo/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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
Index: mojo/converters/surfaces/surfaces_utils.cc
diff --git a/mojo/converters/surfaces/surfaces_utils.cc b/mojo/converters/surfaces/surfaces_utils.cc
index 79b2996dcf427cda2beda668b8adc27ca2b61450..d0793afe33edab62d199d81a17462cf699e1598d 100644
--- a/mojo/converters/surfaces/surfaces_utils.cc
+++ b/mojo/converters/surfaces/surfaces_utils.cc
@@ -28,7 +28,7 @@ SharedQuadStatePtr CreateDefaultSQS(const gfx::Size& size) {
sqs->opacity = 1.f;
sqs->blend_mode = mus::mojom::SK_XFERMODE_kSrc_Mode;
sqs->sorting_context_id = 0;
- return sqs.Pass();
+ return sqs;
}
PassPtr CreateDefaultPass(int id, const gfx::Rect& rect) {
@@ -41,7 +41,7 @@ PassPtr CreateDefaultPass(int id, const gfx::Rect& rect) {
pass->damage_rect = Rect::From(rect);
pass->transform_to_root_target = Transform::From(gfx::Transform());
pass->has_transparent_background = false;
- return pass.Pass();
+ return pass;
}
} // namespace mojo
« no previous file with comments | « mojo/converters/surfaces/surfaces_type_converters.cc ('k') | mojo/converters/surfaces/tests/surface_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698