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

Unified Diff: ui/ozone/platform/drm/gpu/hardware_display_plane_manager.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
Index: ui/ozone/platform/drm/gpu/hardware_display_plane_manager.cc
diff --git a/ui/ozone/platform/drm/gpu/hardware_display_plane_manager.cc b/ui/ozone/platform/drm/gpu/hardware_display_plane_manager.cc
index 88ee51bd3161d917c77057ac8a09b61382a0100c..6a8ed5dd39b7d10a95a2548a231efa0ffcfb6449 100644
--- a/ui/ozone/platform/drm/gpu/hardware_display_plane_manager.cc
+++ b/ui/ozone/platform/drm/gpu/hardware_display_plane_manager.cc
@@ -7,6 +7,7 @@
#include <drm_fourcc.h>
#include <set>
+#include <utility>
#include "base/logging.h"
#include "ui/gfx/geometry/rect.h"
@@ -108,7 +109,7 @@ bool HardwareDisplayPlaneManager::Initialize(DrmDevice* drm) {
// plane is updated via cursor specific DRM API. Hence, we dont keep
// track of Cursor plane here to avoid re-using it for any other purpose.
if (plane->type() != HardwareDisplayPlane::kCursor)
- planes_.push_back(plane.Pass());
+ planes_.push_back(std::move(plane));
}
}
@@ -123,7 +124,7 @@ bool HardwareDisplayPlaneManager::Initialize(DrmDevice* drm) {
CreatePlane(resources->crtcs[i] - 1, (1 << i)));
if (dummy_plane->Initialize(drm, std::vector<uint32_t>(), true,
false)) {
- planes_.push_back(dummy_plane.Pass());
+ planes_.push_back(std::move(dummy_plane));
}
}
}

Powered by Google App Engine
This is Rietveld 408576698