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

Unified Diff: ui/ozone/platform/drm/gpu/drm_thread.cc

Issue 1528373002: Replace Pass() with std::move in ui/ozone (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: ui/ozone/platform/drm/gpu/drm_thread.cc
diff --git a/ui/ozone/platform/drm/gpu/drm_thread.cc b/ui/ozone/platform/drm/gpu/drm_thread.cc
index 901dedb08c7c0aa19398ed49293842dd7a6f6703..bf5ef4d238aa6f5d517befcf5c5a792cad70501f 100644
--- a/ui/ozone/platform/drm/gpu/drm_thread.cc
+++ b/ui/ozone/platform/drm/gpu/drm_thread.cc
@@ -51,7 +51,7 @@ class GbmDeviceGenerator : public DrmDeviceGenerator {
base::File file,
bool is_primary_device) override {
scoped_refptr<DrmDevice> drm =
- new GbmDevice(path, file.Pass(), is_primary_device);
+ new GbmDevice(path, std::move(file), is_primary_device);
if (drm->Initialize(use_atomic_))
return drm;
@@ -128,7 +128,7 @@ void DrmThread::CreateWindow(gfx::AcceleratedWidget widget) {
scoped_ptr<DrmWindow> window(
new DrmWindow(widget, device_manager_.get(), screen_manager_.get()));
window->Initialize();
- screen_manager_->AddWindow(widget, window.Pass());
+ screen_manager_->AddWindow(widget, std::move(window));
}
void DrmThread::DestroyWindow(gfx::AcceleratedWidget widget) {

Powered by Google App Engine
This is Rietveld 408576698