aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkStreamPriv.h
diff options
context:
space:
mode:
authorGravatar reed <reed@google.com>2016-03-11 13:02:28 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2016-03-11 13:02:28 -0800
commitfde05114e6c4107b36e1aa571c64d31def40f613 (patch)
treebb3997b32141ea4984255e833d03cb1caed76904 /src/core/SkStreamPriv.h
parent51c8cfc64c7286ad8a392064cd376bb9974c7bc1 (diff)
Make sp variants for SkData
Diffstat (limited to 'src/core/SkStreamPriv.h')
-rw-r--r--src/core/SkStreamPriv.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/SkStreamPriv.h b/src/core/SkStreamPriv.h
index 75f7cce8df..ac822c1110 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.