diff options
Diffstat (limited to 'chromium/third_party/skia/src/images/SkStreamHelpers.h')
-rw-r--r-- | chromium/third_party/skia/src/images/SkStreamHelpers.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/chromium/third_party/skia/src/images/SkStreamHelpers.h b/chromium/third_party/skia/src/images/SkStreamHelpers.h index 7e766b7eccc..008dd8e17a0 100644 --- a/chromium/third_party/skia/src/images/SkStreamHelpers.h +++ b/chromium/third_party/skia/src/images/SkStreamHelpers.h @@ -10,6 +10,7 @@ class SkAutoMalloc; class SkStream; +class SkData; /** * Copy the provided stream to memory allocated by storage. @@ -24,4 +25,12 @@ class SkStream; */ size_t CopyStreamToStorage(SkAutoMalloc* storage, SkStream* stream); +/** + * Copy the provided stream to an SkData variable. Used by SkImageDecoder_libktx. + * @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 NULL on failure. + */ +SkData *CopyStreamToData(SkStream* stream); + #endif // SkStreamHelpers_DEFINED |