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

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

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/gpu/drm_thread.h
diff --git a/ui/ozone/platform/drm/gpu/drm_thread.h b/ui/ozone/platform/drm/gpu/drm_thread.h
index 49e55865072498f514cc0112def485fa0231aae8..ca62ec9cb0776991fa5f4687e258b134801dda91 100644
--- a/ui/ozone/platform/drm/gpu/drm_thread.h
+++ b/ui/ozone/platform/drm/gpu/drm_thread.h
@@ -7,8 +7,9 @@
#include <stdint.h>
+#include <memory>
+
#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
#include "base/memory/weak_ptr.h"
#include "base/threading/thread.h"
#include "ui/gfx/native_widget_types.h"
@@ -118,10 +119,10 @@ class DrmThread : public base::Thread {
void Init() override;
private:
- scoped_ptr<DrmDeviceManager> device_manager_;
- scoped_ptr<ScanoutBufferGenerator> buffer_generator_;
- scoped_ptr<ScreenManager> screen_manager_;
- scoped_ptr<DrmGpuDisplayManager> display_manager_;
+ std::unique_ptr<DrmDeviceManager> device_manager_;
+ std::unique_ptr<ScanoutBufferGenerator> buffer_generator_;
+ std::unique_ptr<ScreenManager> screen_manager_;
+ std::unique_ptr<DrmGpuDisplayManager> display_manager_;
DISALLOW_COPY_AND_ASSIGN(DrmThread);
};
« no previous file with comments | « ui/ozone/platform/drm/gpu/drm_overlay_validator_unittest.cc ('k') | ui/ozone/platform/drm/gpu/drm_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698