diff options
Diffstat (limited to 'include/effects/SkDiscretePathEffect.h')
-rw-r--r-- | include/effects/SkDiscretePathEffect.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/include/effects/SkDiscretePathEffect.h b/include/effects/SkDiscretePathEffect.h index eb2a994982..252e6de8a3 100644 --- a/include/effects/SkDiscretePathEffect.h +++ b/include/effects/SkDiscretePathEffect.h @@ -8,6 +8,7 @@ #ifndef SkDiscretePathEffect_DEFINED #define SkDiscretePathEffect_DEFINED +#include "SkFlattenable.h" #include "SkPathEffect.h" /** \class SkDiscretePathEffect @@ -35,7 +36,8 @@ public: SkStrokeRec*, const SkRect*) const override; void toString(SkString* str) const override; - SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkDiscretePathEffect) + + Factory getFactory() const override { return CreateProc; } #ifdef SK_BUILD_FOR_ANDROID_FRAMEWORK bool exposedInAndroidJavaAPI() const override { return true; } @@ -48,6 +50,9 @@ protected: void flatten(SkWriteBuffer&) const override; private: + static sk_sp<SkFlattenable> CreateProc(SkReadBuffer&); + friend class SkFlattenable::PrivateInitializer; + SkScalar fSegLength, fPerterb; /* Caller-supplied 32 bit seed assist */ |