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

Unified Diff: cc/surfaces/onscreen_display_client.h

Issue 1866203004: Convert //cc from scoped_ptr to std::unique_ptr. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: scopedptrcc: rebase 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
« no previous file with comments | « cc/surfaces/display_unittest.cc ('k') | cc/surfaces/onscreen_display_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/surfaces/onscreen_display_client.h
diff --git a/cc/surfaces/onscreen_display_client.h b/cc/surfaces/onscreen_display_client.h
index d91f9c4908c68933a2aaeb75f7bf8f3aa4aa2136..bf8752388958b24887541995671a11bfecbc6f3c 100644
--- a/cc/surfaces/onscreen_display_client.h
+++ b/cc/surfaces/onscreen_display_client.h
@@ -5,13 +5,13 @@
#ifndef CC_SURFACES_ONSCREEN_DISPLAY_CLIENT_H_
#define CC_SURFACES_ONSCREEN_DISPLAY_CLIENT_H_
-#include "cc/surfaces/display_client.h"
+#include <memory>
#include "base/compiler_specific.h"
#include "base/macros.h"
#include "base/memory/ref_counted.h"
-#include "base/memory/scoped_ptr.h"
#include "cc/surfaces/display.h"
+#include "cc/surfaces/display_client.h"
#include "cc/surfaces/surfaces_export.h"
namespace base {
@@ -31,7 +31,7 @@ class CC_SURFACES_EXPORT OnscreenDisplayClient
: NON_EXPORTED_BASE(DisplayClient) {
public:
OnscreenDisplayClient(
- scoped_ptr<OutputSurface> output_surface,
+ std::unique_ptr<OutputSurface> output_surface,
SurfaceManager* manager,
SharedBitmapManager* bitmap_manager,
gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager,
@@ -54,15 +54,15 @@ class CC_SURFACES_EXPORT OnscreenDisplayClient
bool output_surface_lost() { return output_surface_lost_; }
protected:
- scoped_ptr<OutputSurface> output_surface_;
+ std::unique_ptr<OutputSurface> output_surface_;
// Be careful of destruction order:
// Display depends on DisplayScheduler depends on *BeginFrameSource
// depends on TaskRunner.
scoped_refptr<base::SingleThreadTaskRunner> task_runner_;
- scoped_ptr<SyntheticBeginFrameSource> synthetic_frame_source_;
- scoped_ptr<BackToBackBeginFrameSource> unthrottled_frame_source_;
- scoped_ptr<DisplayScheduler> scheduler_;
- scoped_ptr<Display> display_;
+ std::unique_ptr<SyntheticBeginFrameSource> synthetic_frame_source_;
+ std::unique_ptr<BackToBackBeginFrameSource> unthrottled_frame_source_;
+ std::unique_ptr<DisplayScheduler> scheduler_;
+ std::unique_ptr<Display> display_;
SurfaceDisplayOutputSurface* surface_display_output_surface_;
bool output_surface_lost_;
bool disable_display_vsync_;
« no previous file with comments | « cc/surfaces/display_unittest.cc ('k') | cc/surfaces/onscreen_display_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698