Chromium Code Reviews| Index: src/core/SkReadBuffer.h |
| diff --git a/src/core/SkReadBuffer.h b/src/core/SkReadBuffer.h |
| index a8bed7be48e71654365d5f9e8586ecdc68ac6d45..1a378b936987ede6c2976da32b1bc99b9b87be02 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() { |
| @@ -215,6 +216,11 @@ public: |
| return this->validate(index >= 0 && index < count); |
| } |
| + SkInflator* getInflator() const { return fInflator; } |
| + void setInflator(SkInflator* inf) { fInflator = inf; } |
| + |
| + sk_sp<SkImage> inflateImage(); |
|
mtklein
2016/08/26 18:43:23
Is this implemented? Is it different than readIma
reed1
2016/08/27 14:14:54
Gone. Was not implemented or called.
|
| + |
| protected: |
| /** |
| * Allows subclass to check if we are using factories for expansion |
| @@ -261,6 +267,8 @@ private: |
| // have decoded. |
| int fDecodedBitmapIndex; |
| #endif // DEBUG_NON_DETERMINISTIC_ASSERT |
| + |
| + SkInflator* fInflator = nullptr; |
| }; |
| #endif // SkReadBuffer_DEFINED |