diff options
Diffstat (limited to 'src/effects/SkTestImageFilters.cpp')
-rwxr-xr-x | src/effects/SkTestImageFilters.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/effects/SkTestImageFilters.cpp b/src/effects/SkTestImageFilters.cpp index be991f6f83..a414c924f3 100755 --- a/src/effects/SkTestImageFilters.cpp +++ b/src/effects/SkTestImageFilters.cpp @@ -80,3 +80,11 @@ 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 |