Index: include/effects/SkTransparentShader.h |
diff --git a/include/effects/SkTransparentShader.h b/include/effects/SkTransparentShader.h |
index 96de80abe5453a4d618d0b225674cb80729b5eae..e23687c0216302c4140fcfda2f3bd0135aab5926 100644 |
--- a/include/effects/SkTransparentShader.h |
+++ b/include/effects/SkTransparentShader.h |
@@ -41,6 +41,10 @@ |
virtual void flatten(SkWriteBuffer&) const SK_OVERRIDE {} |
private: |
+#ifdef SK_SUPPORT_LEGACY_DEEPFLATTENING |
+ SkTransparentShader(SkReadBuffer& buffer) : INHERITED(buffer) {} |
+#endif |
+ |
typedef SkShader INHERITED; |
}; |