Index: samplecode/ClockFaceView.cpp |
diff --git a/samplecode/ClockFaceView.cpp b/samplecode/ClockFaceView.cpp |
index 4ba65bd894b0577a0bdcb878faff8a8fc5e738c2..46d4120c9b35710983f18025abf019699c44b903 100644 |
--- a/samplecode/ClockFaceView.cpp |
+++ b/samplecode/ClockFaceView.cpp |
@@ -90,6 +90,13 @@ |
dst->addCircle(loc.fX, loc.fY, fRadius); |
} |
+#ifdef SK_SUPPORT_LEGACY_DEEPFLATTENING |
+ Dot2DPathEffect(SkReadBuffer& buffer) : INHERITED(buffer) { |
+ fRadius = buffer.readScalar(); |
+ fPts = NULL; |
+ } |
+#endif |
+ |
virtual void flatten(SkWriteBuffer& buffer) const SK_OVERRIDE { |
buffer.writeMatrix(this->getMatrix()); |
buffer.writeScalar(fRadius); |
@@ -119,7 +126,13 @@ |
} |
SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(InverseFillPE) |
-private: |
+protected: |
+#ifdef SK_SUPPORT_LEGACY_DEEPFLATTENING |
+ InverseFillPE(SkReadBuffer& buffer) : INHERITED(buffer) {} |
+#endif |
+ |
+private: |
+ |
typedef SkPathEffect INHERITED; |
}; |