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

Unified Diff: ui/ozone/platform/drm/client_native_pixmap_factory_gbm.cc

Issue 1528373002: Replace Pass() with std::move in ui/ozone (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add #include <utility> 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
« no previous file with comments | « ui/ozone/platform/cast/surface_factory_cast.cc ('k') | ui/ozone/platform/drm/common/drm_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/platform/drm/client_native_pixmap_factory_gbm.cc
diff --git a/ui/ozone/platform/drm/client_native_pixmap_factory_gbm.cc b/ui/ozone/platform/drm/client_native_pixmap_factory_gbm.cc
index 4a094654162a14f2df342b8b8fdfdd7f2ff12c14..01ce8ce7d19dde2ca0f10f83adc629d646a56286 100644
--- a/ui/ozone/platform/drm/client_native_pixmap_factory_gbm.cc
+++ b/ui/ozone/platform/drm/client_native_pixmap_factory_gbm.cc
@@ -4,6 +4,8 @@
#include "ui/ozone/platform/drm/client_native_pixmap_factory_gbm.h"
+#include <utility>
+
#include "ui/gfx/native_pixmap_handle_ozone.h"
#include "ui/ozone/public/client_native_pixmap_factory.h" // nogncheck
@@ -41,7 +43,7 @@ class ClientNativePixmapFactoryGbm : public ClientNativePixmapFactory {
// It's called in IO thread. We rely on clients for thread-safety.
// Switching to an IPC message filter ensures thread-safety.
DCHECK_LT(vgem_fd_.get(), 0);
- vgem_fd_ = device_fd.Pass();
+ vgem_fd_ = std::move(device_fd);
#endif
}
bool IsConfigurationSupported(gfx::BufferFormat format,
« no previous file with comments | « ui/ozone/platform/cast/surface_factory_cast.cc ('k') | ui/ozone/platform/drm/common/drm_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698