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 |