| Index: include/core/SkReadBuffer.h
|
| diff --git a/include/core/SkReadBuffer.h b/include/core/SkReadBuffer.h
|
| index 4da27d4fe0c6902de0a908a3637ebcfe120d2d48..0b10637c8cc38479a885eebc78a9168228add159 100644
|
| --- a/include/core/SkReadBuffer.h
|
| +++ b/include/core/SkReadBuffer.h
|
| @@ -45,6 +45,7 @@ public:
|
| kGradientFlippedFlag_Version = 24,
|
| kDashWritesPhaseIntervals_Version = 25,
|
| kColorShaderNoBool_Version = 26,
|
| + kNoMoreBitmapFlatten_Version = 27,
|
| };
|
|
|
| /**
|
| @@ -145,7 +146,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) {
|
|
|