diff options
Diffstat (limited to 'samplecode/SampleSlides.cpp')
-rw-r--r-- | samplecode/SampleSlides.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/samplecode/SampleSlides.cpp b/samplecode/SampleSlides.cpp index 9b72afb726..3c656e9b0d 100644 --- a/samplecode/SampleSlides.cpp +++ b/samplecode/SampleSlides.cpp @@ -612,12 +612,13 @@ public: return false; } - virtual Factory getFactory() { return CreateProc; } virtual void flatten(SkFlattenableWriteBuffer& buffer) { this->INHERITED::flatten(buffer); buffer.writeScalar(fWidth); } + + SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(Line2DPathEffect) protected: virtual void nextSpan(int u, int v, int ucount, SkPath* dst) { @@ -644,11 +645,6 @@ protected: private: SkScalar fWidth; - static SkFlattenable* CreateProc(SkFlattenableReadBuffer& buffer) - { - return new Line2DPathEffect(buffer); - } - typedef Sk2DPathEffect INHERITED; }; |