Index: src/effects/SkRectShaderImageFilter.cpp |
diff --git a/src/effects/SkRectShaderImageFilter.cpp b/src/effects/SkRectShaderImageFilter.cpp |
index 91a127e0e3f2479a866a4211b7333bd221b6570d..09417c8840f9fe8c0ef3ae6cfe1a789ed4064e56 100644 |
--- a/src/effects/SkRectShaderImageFilter.cpp |
+++ b/src/effects/SkRectShaderImageFilter.cpp |
@@ -33,6 +33,13 @@ |
: INHERITED(0, NULL, cropRect, uniqueID) |
, fShader(SkRef(s)) { |
} |
+ |
+#ifdef SK_SUPPORT_LEGACY_DEEPFLATTENING |
+SkRectShaderImageFilter::SkRectShaderImageFilter(SkReadBuffer& buffer) |
+ : INHERITED(0, buffer) { |
+ fShader = buffer.readShader(); |
+} |
+#endif |
SkFlattenable* SkRectShaderImageFilter::CreateProc(SkReadBuffer& buffer) { |
SK_IMAGEFILTER_UNFLATTEN_COMMON(common, 0); |