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

Unified Diff: components/exo/display.cc

Issue 1553263002: Remove Pass on CrOS. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix //components/exo too Created 4 years, 11 months 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 | « base/move.h ('k') | components/exo/wayland/server.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/exo/display.cc
diff --git a/components/exo/display.cc b/components/exo/display.cc
index 51a353ace0d2c9d435c6338a5e7c62150b84f46f..a63a62752b85b1282a1a93f8f03320017c2be89e 100644
--- a/components/exo/display.cc
+++ b/components/exo/display.cc
@@ -4,6 +4,8 @@
#include "components/exo/display.h"
+#include <utility>
+
#include "base/trace_event/trace_event.h"
#include "base/trace_event/trace_event_argument.h"
#include "components/exo/shared_memory.h"
@@ -54,7 +56,7 @@ scoped_ptr<Buffer> Display::CreatePrimeBuffer(base::ScopedFD fd,
gfx::GpuMemoryBufferHandle handle;
handle.type = gfx::OZONE_NATIVE_PIXMAP;
- handle.native_pixmap_handle.fd = base::FileDescriptor(fd.Pass());
+ handle.native_pixmap_handle.fd = base::FileDescriptor(std::move(fd));
handle.native_pixmap_handle.stride = stride;
scoped_ptr<gfx::GpuMemoryBuffer> gpu_memory_buffer =
@@ -68,7 +70,7 @@ scoped_ptr<Buffer> Display::CreatePrimeBuffer(base::ScopedFD fd,
}
return make_scoped_ptr(
- new Buffer(gpu_memory_buffer.Pass(), GL_TEXTURE_EXTERNAL_OES));
+ new Buffer(std::move(gpu_memory_buffer), GL_TEXTURE_EXTERNAL_OES));
}
#endif
« no previous file with comments | « base/move.h ('k') | components/exo/wayland/server.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698