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

Unified Diff: ui/ozone/platform/drm/gpu/drm_device.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/drm/common/drm_util.cc ('k') | ui/ozone/platform/drm/gpu/drm_device_generator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/platform/drm/gpu/drm_device.cc
diff --git a/ui/ozone/platform/drm/gpu/drm_device.cc b/ui/ozone/platform/drm/gpu/drm_device.cc
index 9a16a95e2ef0eea17096fbfbd38ae8ea70586605..15e2b3ad910c4f318e0e8c27d3afc05db11993dd 100644
--- a/ui/ozone/platform/drm/gpu/drm_device.cc
+++ b/ui/ozone/platform/drm/gpu/drm_device.cc
@@ -9,6 +9,7 @@
#include <unistd.h>
#include <xf86drm.h>
#include <xf86drmMode.h>
+#include <utility>
#include "base/logging.h"
#include "base/message_loop/message_loop.h"
@@ -215,7 +216,7 @@ DrmDevice::DrmDevice(const base::FilePath& device_path,
base::File file,
bool is_primary_device)
: device_path_(device_path),
- file_(file.Pass()),
+ file_(std::move(file)),
page_flip_manager_(new PageFlipManager()),
is_primary_device_(is_primary_device) {}
@@ -370,7 +371,7 @@ ScopedDrmPropertyPtr DrmDevice::GetProperty(drmModeConnector* connector,
continue;
if (strcmp(property->name, name) == 0)
- return property.Pass();
+ return property;
}
return ScopedDrmPropertyPtr();
« no previous file with comments | « ui/ozone/platform/drm/common/drm_util.cc ('k') | ui/ozone/platform/drm/gpu/drm_device_generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698