diff options
author | reed <reed@google.com> | 2016-03-11 13:02:28 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-03-11 13:02:28 -0800 |
commit | fde05114e6c4107b36e1aa571c64d31def40f613 (patch) | |
tree | bb3997b32141ea4984255e833d03cb1caed76904 /src/core/SkStreamPriv.h | |
parent | 51c8cfc64c7286ad8a392064cd376bb9974c7bc1 (diff) |
Make sp variants for SkData
Review URL: https://codereview.chromium.org/1779263003
Diffstat (limited to 'src/core/SkStreamPriv.h')
-rw-r--r-- | src/core/SkStreamPriv.h | 4 |
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. |