Index: src/effects/SkColorFilterImageFilter.cpp |
diff --git a/src/effects/SkColorFilterImageFilter.cpp b/src/effects/SkColorFilterImageFilter.cpp |
index 2c3706769fa400a91e8ffdf3aa9a1e03c097e2e1..2a7cc3107a5fa2b6c9836b7cff56222aaced4b25 100755 |
--- a/src/effects/SkColorFilterImageFilter.cpp |
+++ b/src/effects/SkColorFilterImageFilter.cpp |
@@ -83,14 +83,20 @@ SkColorFilterImageFilter::SkColorFilterImageFilter(SkColorFilter* cf, |
SkSafeRef(cf); |
} |
+#ifdef SK_SUPPORT_LEGACY_DEEPFLATTENING |
SkColorFilterImageFilter::SkColorFilterImageFilter(SkReadBuffer& buffer) |
: INHERITED(1, buffer) { |
fColorFilter = buffer.readColorFilter(); |
} |
+#endif |
+ |
+SkFlattenable* SkColorFilterImageFilter::CreateProc(SkReadBuffer& buffer) { |
+ SK_IMAGEFILTER_UNFLATTEN_COMMON(common, 1); |
+ return Create(buffer.readColorFilter(), common.getInput(0), &common.cropRect()); |
+} |
void SkColorFilterImageFilter::flatten(SkWriteBuffer& buffer) const { |
this->INHERITED::flatten(buffer); |
- |
buffer.writeFlattenable(fColorFilter); |
} |