Index: src/core/SkLocalMatrixShader.cpp |
diff --git a/src/core/SkLocalMatrixShader.cpp b/src/core/SkLocalMatrixShader.cpp |
index 544ad2fe4c1e935150bc6cc766b706d852d66d6d..62d5e36d895e52e9e2726efe6a7e8793633b70cb 100644 |
--- a/src/core/SkLocalMatrixShader.cpp |
+++ b/src/core/SkLocalMatrixShader.cpp |
@@ -6,6 +6,15 @@ |
*/ |
#include "SkLocalMatrixShader.h" |
+ |
+#ifdef SK_SUPPORT_LEGACY_DEEPFLATTENING |
+SkLocalMatrixShader::SkLocalMatrixShader(SkReadBuffer& buffer) : INHERITED(buffer) { |
+ fProxyShader.reset(buffer.readShader()); |
+ if (NULL == fProxyShader.get()) { |
+ sk_throw(); |
+ } |
+} |
+#endif |
SkFlattenable* SkLocalMatrixShader::CreateProc(SkReadBuffer& buffer) { |
SkMatrix lm; |