Index: src/effects/SkMorphologyImageFilter.cpp |
diff --git a/src/effects/SkMorphologyImageFilter.cpp b/src/effects/SkMorphologyImageFilter.cpp |
index 3d27d10ee12197d52d9cf9ffd4d3f2f369ec9b12..9c97c35bc27601dbd1d141f39774ad9c80e09e80 100644 |
--- a/src/effects/SkMorphologyImageFilter.cpp |
+++ b/src/effects/SkMorphologyImageFilter.cpp |
@@ -20,6 +20,16 @@ |
#include "gl/GrGLProcessor.h" |
#include "gl/builders/GrGLProgramBuilder.h" |
#include "effects/Gr1DKernelEffect.h" |
+#endif |
+ |
+#ifdef SK_SUPPORT_LEGACY_DEEPFLATTENING |
+SkMorphologyImageFilter::SkMorphologyImageFilter(SkReadBuffer& buffer) |
+ : INHERITED(1, buffer) { |
+ fRadius.fWidth = buffer.readInt(); |
+ fRadius.fHeight = buffer.readInt(); |
+ buffer.validate((fRadius.fWidth >= 0) && |
+ (fRadius.fHeight >= 0)); |
+} |
#endif |
SkMorphologyImageFilter::SkMorphologyImageFilter(int radiusX, |