diff options
Diffstat (limited to 'samplecode/SampleTextEffects.cpp')
-rw-r--r-- | samplecode/SampleTextEffects.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/samplecode/SampleTextEffects.cpp b/samplecode/SampleTextEffects.cpp index e6bca82656..a37d1039a5 100644 --- a/samplecode/SampleTextEffects.cpp +++ b/samplecode/SampleTextEffects.cpp @@ -189,10 +189,6 @@ public: return false; } - virtual void flatten(SkFlattenableWriteBuffer& buffer) { - this->INHERITED::flatten(buffer); - buffer.writeScalar(fWidth); - } SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(Line2DPathEffect) protected: @@ -211,9 +207,13 @@ protected: } } - Line2DPathEffect(SkFlattenableReadBuffer& buffer) : Sk2DPathEffect(buffer) { + Line2DPathEffect(SkFlattenableReadBuffer& buffer) : INHERITED(buffer) { fWidth = buffer.readScalar(); } + virtual void flatten(SkFlattenableWriteBuffer& buffer) const SK_OVERRIDE { + this->INHERITED::flatten(buffer); + buffer.writeScalar(fWidth); + } private: SkScalar fWidth; |