aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/effects/Sk1DPathEffect.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/effects/Sk1DPathEffect.h')
-rw-r--r--include/effects/Sk1DPathEffect.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/effects/Sk1DPathEffect.h b/include/effects/Sk1DPathEffect.h
index 88a36ff7c6..a78aded601 100644
--- a/include/effects/Sk1DPathEffect.h
+++ b/include/effects/Sk1DPathEffect.h
@@ -8,6 +8,7 @@
#ifndef Sk1DPathEffect_DEFINED
#define Sk1DPathEffect_DEFINED
+#include "SkFlattenable.h"
#include "SkPathEffect.h"
#include "SkPath.h"
@@ -62,7 +63,8 @@ public:
SkStrokeRec*, const SkRect*) const override;
void toString(SkString* str) const override;
- SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkPath1DPathEffect)
+
+ Factory getFactory() const override { return CreateProc; }
protected:
SkPath1DPathEffect(const SkPath& path, SkScalar advance, SkScalar phase, Style);
@@ -73,6 +75,9 @@ protected:
SkScalar next(SkPath*, SkScalar, SkPathMeasure&) const override;
private:
+ static sk_sp<SkFlattenable> CreateProc(SkReadBuffer&);
+ friend class SkFlattenable::PrivateInitializer;
+
SkPath fPath; // copied from constructor
SkScalar fAdvance; // copied from constructor
SkScalar fInitialOffset; // computed from phase