| Index: include/core/SkReadBuffer.h
|
| diff --git a/include/core/SkReadBuffer.h b/include/core/SkReadBuffer.h
|
| index e962234ddb6bccf06f2b55f19551cffce2df6115..5364bee28597e6755389437737e3a9ad5c614301 100644
|
| --- a/include/core/SkReadBuffer.h
|
| +++ b/include/core/SkReadBuffer.h
|
| @@ -45,6 +45,7 @@ public:
|
| kDashWritesPhaseIntervals_Version = 25,
|
| kColorShaderNoBool_Version = 26,
|
| kNoUnitMappers_Version = 27,
|
| + kNoMoreBitmapFlatten_Version = 28,
|
| };
|
|
|
| /**
|
| @@ -149,7 +150,12 @@ public:
|
| // helpers to get info about arrays and binary data
|
| virtual uint32_t getArrayCount();
|
|
|
| - virtual void readBitmap(SkBitmap* bitmap);
|
| + /**
|
| + * Returns false if the bitmap could not be completely read. In that case, it will be set
|
| + * to have width/height, but no pixels.
|
| + */
|
| + bool readBitmap(SkBitmap* bitmap);
|
| +
|
| virtual SkTypeface* readTypeface();
|
|
|
| void setBitmapStorage(SkBitmapHeapReader* bitmapStorage) {
|
|
|