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

Unified Diff: third_party/WebKit/Source/platform/graphics/GraphicsLayer.h

Issue 2204383003: Make blink::JSONValue (and subclasses) use unique_ptr rather than RefPtrs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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/GraphicsLayer.h
diff --git a/third_party/WebKit/Source/platform/graphics/GraphicsLayer.h b/third_party/WebKit/Source/platform/graphics/GraphicsLayer.h
index dcb5611f20c864ae55b4eb8ff798bc5331bfa424..8a2c6373479e8a36b015d161bf2923e2cf6b83e3 100644
--- a/third_party/WebKit/Source/platform/graphics/GraphicsLayer.h
+++ b/third_party/WebKit/Source/platform/graphics/GraphicsLayer.h
@@ -202,7 +202,7 @@ public:
// pointers for the layers and timing data will be included in the returned string.
String layerTreeAsText(LayerTreeFlags = LayerTreeNormal) const;
- PassRefPtr<JSONObject> layerTreeAsJSON(LayerTreeFlags) const;
+ std::unique_ptr<JSONObject> layerTreeAsJSON(LayerTreeFlags) const;
void setTracksPaintInvalidations(bool);
bool isTrackingOrCheckingPaintInvalidations() const
@@ -296,7 +296,7 @@ private:
WebLayer* contentsLayerIfRegistered();
typedef HashMap<int, int> RenderingContextMap;
- PassRefPtr<JSONObject> layerTreeAsJSONInternal(LayerTreeFlags, RenderingContextMap&) const;
+ std::unique_ptr<JSONObject> layerTreeAsJSONInternal(LayerTreeFlags, RenderingContextMap&) const;
#if DCHECK_IS_ON()
PassRefPtr<SkPicture> capturePicture();

Powered by Google App Engine
This is Rietveld 408576698