diff options
Diffstat (limited to 'include/effects/Sk1DPathEffect.h')
-rw-r--r-- | include/effects/Sk1DPathEffect.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/effects/Sk1DPathEffect.h b/include/effects/Sk1DPathEffect.h index 8d353393d6..1ba824cb23 100644 --- a/include/effects/Sk1DPathEffect.h +++ b/include/effects/Sk1DPathEffect.h @@ -59,6 +59,10 @@ public: // override from SkPathEffect virtual bool filterPath(SkPath* dst, const SkPath& src, SkScalar* width); + static SkFlattenable* CreateProc(SkFlattenableReadBuffer& buffer) { + return SkNEW_ARGS(SkPath1DPathEffect, (buffer)); + } + protected: SkPath1DPathEffect(SkFlattenableReadBuffer& buffer); @@ -74,10 +78,6 @@ private: SkScalar fAdvance; // copied from constructor SkScalar fInitialOffset; // computed from phase Style fStyle; // copied from constructor - - static SkFlattenable* CreateProc(SkFlattenableReadBuffer& buffer) { - return SkNEW_ARGS(SkPath1DPathEffect, (buffer)); - } typedef Sk1DPathEffect INHERITED; }; |