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

Unified Diff: src/core/SkStreamPriv.h

Issue 1779263003: Make sp variants for SkData (Closed) Base URL: https://skia.googlesource.com/skia.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
« no previous file with comments | « src/core/SkStream.cpp ('k') | src/core/SkWriter32.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkStreamPriv.h
diff --git a/src/core/SkStreamPriv.h b/src/core/SkStreamPriv.h
index 75f7cce8df720667c19e7515f484b2680e0ef974..ac822c1110ac78b0e03bf5a9d843b35f2205bdd3 100644
--- a/src/core/SkStreamPriv.h
+++ b/src/core/SkStreamPriv.h
@@ -8,6 +8,8 @@
#ifndef SkStreamPriv_DEFINED
#define SkStreamPriv_DEFINED
+#include "SkRefCnt.h"
+
class SkData;
class SkStream;
class SkWStream;
@@ -23,7 +25,7 @@ class SkWStream;
* will have a ref count of one upon return and belongs to the
* caller. Returns nullptr on failure.
*/
-SkData* SkCopyStreamToData(SkStream* stream);
+sk_sp<SkData> SkCopyStreamToData(SkStream* stream);
/**
* Copies the input stream from the current position to the end.
« no previous file with comments | « src/core/SkStream.cpp ('k') | src/core/SkWriter32.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698