diff options
Diffstat (limited to 'src/core/SkReadBuffer.h')
-rw-r--r-- | src/core/SkReadBuffer.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/core/SkReadBuffer.h b/src/core/SkReadBuffer.h index 7c4ecc6bd3..1873c7d3f4 100644 --- a/src/core/SkReadBuffer.h +++ b/src/core/SkReadBuffer.h @@ -27,6 +27,7 @@ class SkBitmap; class SkImage; +class SkInflator; #if defined(SK_DEBUG) && defined(SK_BUILD_FOR_MAC) #define DEBUG_NON_DETERMINISTIC_ASSERT @@ -131,7 +132,7 @@ public: virtual void readRegion(SkRegion* region); virtual void readPath(SkPath* path); - void readPaint(SkPaint* paint) { paint->unflatten(*this); } + virtual void readPaint(SkPaint* paint) { paint->unflatten(*this); } virtual SkFlattenable* readFlattenable(SkFlattenable::Type); template <typename T> sk_sp<T> readFlattenable() { @@ -210,6 +211,11 @@ public: return this->validate(index >= 0 && index < count); } + SkInflator* getInflator() const { return fInflator; } + void setInflator(SkInflator* inf) { fInflator = inf; } + +// sk_sp<SkImage> inflateImage(); + protected: /** * Allows subclass to check if we are using factories for expansion @@ -256,6 +262,8 @@ private: // have decoded. int fDecodedBitmapIndex; #endif // DEBUG_NON_DETERMINISTIC_ASSERT + + SkInflator* fInflator = nullptr; }; #endif // SkReadBuffer_DEFINED |