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

Unified Diff: cc/debug/frame_rate_counter.cc

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/frame_rate_counter.h ('k') | cc/debug/frame_timing_tracker.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/debug/frame_rate_counter.cc
diff --git a/cc/debug/frame_rate_counter.cc b/cc/debug/frame_rate_counter.cc
index a6b4a44519bc6b8afc2684b8ca50322ac66cfa5e..928c27ce5f124ef3ad3b87ab67f0ae496de52e63 100644
--- a/cc/debug/frame_rate_counter.cc
+++ b/cc/debug/frame_rate_counter.cc
@@ -9,6 +9,7 @@
#include <algorithm>
#include <limits>
+#include "base/memory/ptr_util.h"
#include "base/metrics/histogram.h"
#include "cc/trees/proxy.h"
@@ -33,8 +34,9 @@ static const double kFrameTooSlow = 1.5;
static const double kDroppedFrameTime = 1.0 / 50.0;
// static
-scoped_ptr<FrameRateCounter> FrameRateCounter::Create(bool has_impl_thread) {
- return make_scoped_ptr(new FrameRateCounter(has_impl_thread));
+std::unique_ptr<FrameRateCounter> FrameRateCounter::Create(
+ bool has_impl_thread) {
+ return base::WrapUnique(new FrameRateCounter(has_impl_thread));
}
base::TimeDelta FrameRateCounter::RecentFrameInterval(size_t n) const {
« no previous file with comments | « cc/debug/frame_rate_counter.h ('k') | cc/debug/frame_timing_tracker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698