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

Unified Diff: third_party/WebKit/Source/platform/graphics/GraphicsLayerDebugInfo.cpp

Issue 1717283003: tracing: Make ConvertableToTraceFormat move-only scoped_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . 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: third_party/WebKit/Source/platform/graphics/GraphicsLayerDebugInfo.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/GraphicsLayerDebugInfo.cpp b/third_party/WebKit/Source/platform/graphics/GraphicsLayerDebugInfo.cpp
index b46bcad0239da2581e4db6080d33d121b2d435d8..896ea987961e8c768a3f24ce391fa0687e47bc9d 100644
--- a/third_party/WebKit/Source/platform/graphics/GraphicsLayerDebugInfo.cpp
+++ b/third_party/WebKit/Source/platform/graphics/GraphicsLayerDebugInfo.cpp
@@ -32,9 +32,9 @@ GraphicsLayerDebugInfo::GraphicsLayerDebugInfo()
GraphicsLayerDebugInfo::~GraphicsLayerDebugInfo() { }
-scoped_refptr<base::trace_event::TracedValue> GraphicsLayerDebugInfo::asTracedValue() const
+scoped_ptr<base::trace_event::TracedValue> GraphicsLayerDebugInfo::asTracedValue() const
{
- scoped_refptr<base::trace_event::TracedValue> tracedValue = new base::trace_event::TracedValue;
+ auto tracedValue = make_scoped_ptr(new base::trace_event::TracedValue);
appendAnnotatedInvalidateRects(tracedValue.get());
appendCompositingReasons(tracedValue.get());
appendSquashingDisallowedReasons(tracedValue.get());

Powered by Google App Engine
This is Rietveld 408576698