| Index: src/core/SkStreamPriv.h
|
| diff --git a/src/core/SkStreamPriv.h b/src/core/SkStreamPriv.h
|
| index 5b5a73adef0f7368bc6df2159af55e116a9d48fd..718097d1cc0624d092c8f15905bfa407a5e91580 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
|
|
|