Index: src/effects/SkTestImageFilters.cpp |
diff --git a/src/effects/SkTestImageFilters.cpp b/src/effects/SkTestImageFilters.cpp |
index da88316654ab3d58b7776bb12307cc5e406ba5e2..a414c924f30607ebdf73e41cb794075ddfa9f9f0 100755 |
--- a/src/effects/SkTestImageFilters.cpp |
+++ b/src/effects/SkTestImageFilters.cpp |
@@ -71,14 +71,20 @@ bool SkDownSampleImageFilter::onFilterImage(Proxy* proxy, const SkBitmap& src, |
return true; |
} |
+SkFlattenable* SkDownSampleImageFilter::CreateProc(SkReadBuffer& buffer) { |
+ SK_IMAGEFILTER_UNFLATTEN_COMMON(common, 1); |
+ return Create(buffer.readScalar(), common.getInput(0)); |
+} |
+ |
void SkDownSampleImageFilter::flatten(SkWriteBuffer& buffer) const { |
this->INHERITED::flatten(buffer); |
- |
buffer.writeScalar(fScale); |
} |
+#ifdef SK_SUPPORT_LEGACY_DEEPFLATTENING |
SkDownSampleImageFilter::SkDownSampleImageFilter(SkReadBuffer& buffer) |
: INHERITED(1, buffer) { |
fScale = buffer.readScalar(); |
buffer.validate(SkScalarIsFinite(fScale)); |
} |
+#endif |