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

Unified Diff: cc/debug/benchmark_instrumentation.cc

Issue 1717283003: tracing: Make ConvertableToTraceFormat move-only scoped_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 10 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: cc/debug/benchmark_instrumentation.cc
diff --git a/cc/debug/benchmark_instrumentation.cc b/cc/debug/benchmark_instrumentation.cc
index 5a04e214ed1a6d8eff90bef0bf1ddad25b877ddd..ed8fe214fdfa3a6a76db065bf6b12d97aa42f206 100644
--- a/cc/debug/benchmark_instrumentation.cc
+++ b/cc/debug/benchmark_instrumentation.cc
@@ -20,15 +20,12 @@ void IssueImplThreadRenderingStatsEvent(const RenderingStats& stats) {
}
void IssueDisplayRenderingStatsEvent() {
- scoped_refptr<base::trace_event::TracedValue> record_data =
- new base::trace_event::TracedValue();
+ scoped_ptr<base::trace_event::TracedValue> record_data(
+ new base::trace_event::TracedValue());
record_data->SetInteger("frame_count", 1);
TRACE_EVENT_INSTANT1(
- "benchmark",
- "BenchmarkInstrumentation::DisplayRenderingStats",
- TRACE_EVENT_SCOPE_THREAD,
- "data",
- scoped_refptr<base::trace_event::ConvertableToTraceFormat>(record_data));
+ "benchmark", "BenchmarkInstrumentation::DisplayRenderingStats",
+ TRACE_EVENT_SCOPE_THREAD, "data", std::move(record_data));
}
} // namespace benchmark_instrumentation

Powered by Google App Engine
This is Rietveld 408576698