aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkStreamPriv.h
diff options
context:
space:
mode:
authorGravatar Ben Wagner <bungeman@google.com>2018-05-15 14:12:14 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-05-16 18:53:12 +0000
commitbdf5433ab49b00df7c0f9185a68fc39f74cda409 (patch)
treefec7980683ba47019b3100161c95185bb6ba4294 /src/core/SkStreamPriv.h
parent94f585ed091e252cd3cc741b19c8a226fe4a5eec (diff)
SkImage::onRefEncoded to return sk_sp.
This changes SkImage::onRefEncoded and downstack calls to return sk_sp. All of the values returned are already sk_sp, so this just updates the API. This change is currently behind the new flag SK_IGNORE_SKIMAGE_ONREFENCODED_CHANGE so that Chromium can be updated. Change-Id: Ic53a88ae23fa8b3b41b84c4abdc4b74e9879da38 Reviewed-on: https://skia-review.googlesource.com/128311 Reviewed-by: Leon Scroggins <scroggo@google.com> Commit-Queue: Ben Wagner <bungeman@google.com>
Diffstat (limited to 'src/core/SkStreamPriv.h')
-rw-r--r--src/core/SkStreamPriv.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/core/SkStreamPriv.h b/src/core/SkStreamPriv.h
index ac822c1110..6bec5f8288 100644
--- a/src/core/SkStreamPriv.h
+++ b/src/core/SkStreamPriv.h
@@ -21,9 +21,7 @@ class SkWStream;
* but is not at the beginning, this call will fail (return NULL).
*
* @param stream SkStream to be copied into data.
- * @return SkData* The resulting SkData after the copy. This data
- * will have a ref count of one upon return and belongs to the
- * caller. Returns nullptr on failure.
+ * @return The resulting SkData after the copy, nullptr on failure.
*/
sk_sp<SkData> SkCopyStreamToData(SkStream* stream);