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

Unified Diff: third_party/WebKit/Source/platform/graphics/paint/PaintArtifactToSkCanvas.h

Issue 1819683002: Use sk_sp-based picture recording APIs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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/paint/PaintArtifactToSkCanvas.h
diff --git a/third_party/WebKit/Source/platform/graphics/paint/PaintArtifactToSkCanvas.h b/third_party/WebKit/Source/platform/graphics/paint/PaintArtifactToSkCanvas.h
index 65504972b081da8bfb2e8f2bedb8ed6fe6ea79f9..7a2db657fadc2e8769a74251f36e50bfb757244a 100644
--- a/third_party/WebKit/Source/platform/graphics/paint/PaintArtifactToSkCanvas.h
+++ b/third_party/WebKit/Source/platform/graphics/paint/PaintArtifactToSkCanvas.h
@@ -6,7 +6,7 @@
#define PaintArtifactToSkCanvas_h
#include "platform/PlatformExport.h"
-#include "wtf/PassRefPtr.h"
+#include "third_party/skia/include/core/SkRefCnt.h"
class SkCanvas;
class SkPicture;
@@ -26,7 +26,7 @@ class PaintArtifact;
PLATFORM_EXPORT void paintArtifactToSkCanvas(const PaintArtifact&, SkCanvas*);
// Using the previous, converts the paint artifact to an SkPicture.
-PLATFORM_EXPORT PassRefPtr<SkPicture> paintArtifactToSkPicture(
+PLATFORM_EXPORT sk_sp<const SkPicture> paintArtifactToSkPicture(
const PaintArtifact&, const SkRect& bounds);
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698