Index: src/effects/gradients/SkSweepGradient.h |
diff --git a/src/effects/gradients/SkSweepGradient.h b/src/effects/gradients/SkSweepGradient.h |
index 5c460617445425fec6cc647bf07e86c1cf0e345f..640079ad6896b4ab162dca9587844c528d62a69b 100644 |
--- a/src/effects/gradients/SkSweepGradient.h |
+++ b/src/effects/gradients/SkSweepGradient.h |
@@ -41,13 +41,16 @@ public: |
SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkSweepGradient) |
protected: |
+#ifdef SK_SUPPORT_LEGACY_DEEPFLATTENING |
SkSweepGradient(SkReadBuffer& buffer); |
+#endif |
virtual void flatten(SkWriteBuffer& buffer) const SK_OVERRIDE; |
virtual Context* onCreateContext(const ContextRec&, void* storage) const SK_OVERRIDE; |
private: |
const SkPoint fCenter; |
+ friend class SkGradientShader; |
typedef SkGradientShaderBase INHERITED; |
}; |