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

Unified Diff: ui/ozone/platform/drm/common/client_native_pixmap_dmabuf.cc

Issue 1868363002: Replace scoped_ptr with std::unique_ptr in //ui (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@scopedptrcc
Patch Set: scopedptrui: rebase-make_scoped_ptr Created 4 years, 8 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
Index: ui/ozone/platform/drm/common/client_native_pixmap_dmabuf.cc
diff --git a/ui/ozone/platform/drm/common/client_native_pixmap_dmabuf.cc b/ui/ozone/platform/drm/common/client_native_pixmap_dmabuf.cc
index 09e8692c1dc867c2473d549d176305824dda989d..1c91acf34d2a6dcf53fccb577654ac40c51abb91 100644
--- a/ui/ozone/platform/drm/common/client_native_pixmap_dmabuf.cc
+++ b/ui/ozone/platform/drm/common/client_native_pixmap_dmabuf.cc
@@ -9,6 +9,7 @@
#include <sys/mman.h>
#include <xf86drm.h>
+#include "base/memory/ptr_util.h"
#include "base/process/memory.h"
#include "base/trace_event/trace_event.h"
@@ -54,12 +55,13 @@ void PrimeSyncEnd(int dmabuf_fd) {
} // namespace
// static
-scoped_ptr<ClientNativePixmap> ClientNativePixmapDmaBuf::ImportFromDmabuf(
+std::unique_ptr<ClientNativePixmap> ClientNativePixmapDmaBuf::ImportFromDmabuf(
int dmabuf_fd,
const gfx::Size& size,
int stride) {
DCHECK_GE(dmabuf_fd, 0);
- return make_scoped_ptr(new ClientNativePixmapDmaBuf(dmabuf_fd, size, stride));
+ return base::WrapUnique(
+ new ClientNativePixmapDmaBuf(dmabuf_fd, size, stride));
}
ClientNativePixmapDmaBuf::ClientNativePixmapDmaBuf(int dmabuf_fd,
« no previous file with comments | « ui/ozone/platform/drm/common/client_native_pixmap_dmabuf.h ('k') | ui/ozone/platform/drm/common/scoped_drm_types.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698