Index: include/effects/SkTransparentShader.h |
diff --git a/include/effects/SkTransparentShader.h b/include/effects/SkTransparentShader.h |
index d9a3e5d7a1975523e3b8ac317979d571f57d2486..e23687c0216302c4140fcfda2f3bd0135aab5926 100644 |
--- a/include/effects/SkTransparentShader.h |
+++ b/include/effects/SkTransparentShader.h |
@@ -37,8 +37,13 @@ public: |
protected: |
virtual Context* onCreateContext(const ContextRec&, void* storage) const SK_OVERRIDE; |
+ // we don't need to flatten anything at all |
+ virtual void flatten(SkWriteBuffer&) const SK_OVERRIDE {} |
+ |
private: |
+#ifdef SK_SUPPORT_LEGACY_DEEPFLATTENING |
SkTransparentShader(SkReadBuffer& buffer) : INHERITED(buffer) {} |
+#endif |
typedef SkShader INHERITED; |
}; |