diff options
Diffstat (limited to 'src/core/SkStreamPriv.h')
-rw-r--r-- | src/core/SkStreamPriv.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/core/SkStreamPriv.h b/src/core/SkStreamPriv.h index 5b5a73adef..718097d1cc 100644 --- a/src/core/SkStreamPriv.h +++ b/src/core/SkStreamPriv.h @@ -10,6 +10,7 @@ class SkAutoMalloc; class SkStream; +class SkStreamRewindable; class SkData; /** @@ -34,4 +35,12 @@ size_t SkCopyStreamToStorage(SkAutoMalloc* storage, SkStream* stream); */ SkData *SkCopyStreamToData(SkStream* stream); +/** + * Attempt to convert this stream to a StreamRewindable in the + * cheapest possible manner (calling duplicate() if possible, and + * otherwise allocating memory for a copy). The position of the + * input stream is left in an indeterminate state. + */ +SkStreamRewindable* SkStreamRewindableFromSkStream(SkStream* stream); + #endif // SkStreamPriv_DEFINED |