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/debug/frame_rate_counter.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/debug/devtools_instrumentation.h ('k') | cc/debug/frame_rate_counter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/debug/frame_rate_counter.h
diff --git a/cc/debug/frame_rate_counter.h b/cc/debug/frame_rate_counter.h
index ad91598a9b85e31ca1fd1bf2034d2fd5fecfaed6..ba2d122cf1dc97a89d3bde604e0ab428d54478d6 100644
--- a/cc/debug/frame_rate_counter.h
+++ b/cc/debug/frame_rate_counter.h
@@ -7,8 +7,9 @@
#include <stddef.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 {
// intelligently compute average frames per second.
class FrameRateCounter {
public:
- static scoped_ptr<FrameRateCounter> Create(bool has_impl_thread);
+ static std::unique_ptr<FrameRateCounter> Create(bool has_impl_thread);
size_t current_frame_number() const { return ring_buffer_.CurrentIndex(); }
int dropped_frame_count() const { return dropped_frame_count_; }
« no previous file with comments | « cc/debug/devtools_instrumentation.h ('k') | cc/debug/frame_rate_counter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698