diff options
Diffstat (limited to 'src/effects/SkDashImpl.h')
-rw-r--r-- | src/effects/SkDashImpl.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/effects/SkDashImpl.h b/src/effects/SkDashImpl.h index f5c4244dc3..13ec155847 100644 --- a/src/effects/SkDashImpl.h +++ b/src/effects/SkDashImpl.h @@ -22,7 +22,8 @@ public: DashType asADash(DashInfo* info) const override; void toString(SkString* str) const override; - SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkDashImpl) + + Factory getFactory() const override { return CreateProc; } #ifdef SK_BUILD_FOR_ANDROID_FRAMEWORK bool exposedInAndroidJavaAPI() const override { return true; } @@ -33,6 +34,9 @@ protected: void flatten(SkWriteBuffer&) const override; private: + static sk_sp<SkFlattenable> CreateProc(SkReadBuffer&); + friend class SkFlattenable::PrivateInitializer; + SkScalar* fIntervals; int32_t fCount; SkScalar fPhase; |