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

Unified Diff: cc/resources/memory_history.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/raster/zero_copy_tile_task_worker_pool.cc ('k') | cc/resources/memory_history.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/memory_history.h
diff --git a/cc/resources/memory_history.h b/cc/resources/memory_history.h
index cdcc46aafaeaf6de5485db4e6cb4bb8d46817e88..2a396485b365e3397fce9e64061c505932bd278b 100644
--- a/cc/resources/memory_history.h
+++ b/cc/resources/memory_history.h
@@ -8,8 +8,9 @@
#include <stddef.h>
#include <stdint.h>
+#include <memory>
+
#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
#include "base/time/time.h"
#include "cc/debug/ring_buffer.h"
@@ -18,7 +19,7 @@ namespace cc {
// Maintains a history of memory for each frame.
class MemoryHistory {
public:
- static scoped_ptr<MemoryHistory> Create();
+ static std::unique_ptr<MemoryHistory> Create();
size_t HistorySize() const { return ring_buffer_.BufferSize(); }
« no previous file with comments | « cc/raster/zero_copy_tile_task_worker_pool.cc ('k') | cc/resources/memory_history.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698