diff options
Diffstat (limited to 'include/effects/SkPaintImageFilter.h')
-rw-r--r-- | include/effects/SkPaintImageFilter.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/effects/SkPaintImageFilter.h b/include/effects/SkPaintImageFilter.h index b27c2624b1..bf7c51b50e 100644 --- a/include/effects/SkPaintImageFilter.h +++ b/include/effects/SkPaintImageFilter.h @@ -8,6 +8,7 @@ #ifndef SkPaintImageFilter_DEFINED #define SkPaintImageFilter_DEFINED +#include "SkFlattenable.h" #include "SkImageFilter.h" #include "SkPaint.h" @@ -27,7 +28,8 @@ public: bool affectsTransparentBlack() const override; void toString(SkString* str) const override; - SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkPaintImageFilter) + + Factory getFactory() const override { return CreateProc; } protected: void flatten(SkWriteBuffer&) const override; @@ -37,6 +39,8 @@ protected: private: SkPaintImageFilter(const SkPaint& paint, const CropRect* rect); + static sk_sp<SkFlattenable> CreateProc(SkReadBuffer&); + friend class SkFlattenable::PrivateInitializer; SkPaint fPaint; |