| Index: include/core/SkData.h
|
| diff --git a/include/core/SkData.h b/include/core/SkData.h
|
| index 6da8e113663f0bf256cd516b7e6576be71cd1d41..e25ef50d711fcbfd0a262c122d1f8b53d1ca11b8 100644
|
| --- a/include/core/SkData.h
|
| +++ b/include/core/SkData.h
|
| @@ -11,6 +11,7 @@
|
| #include "SkRefCnt.h"
|
|
|
| struct SkFILE;
|
| +class SkStream;
|
|
|
| /**
|
| * SkData holds an immutable data buffer. Not only is the data immutable,
|
| @@ -138,6 +139,13 @@ public:
|
| static SkData* NewFromFD(int fd);
|
|
|
| /**
|
| + * Attempt to read size bytes into a SkData. If the read succeeds, return the data,
|
| + * else return NULL. Either way the stream's cursor may have been changed as a result
|
| + * of calling read().
|
| + */
|
| + static SkData* NewFromStream(SkStream*, size_t size);
|
| +
|
| + /**
|
| * Create a new dataref using a subset of the data in the specified
|
| * src dataref.
|
| */
|
|
|