Index: src/effects/SkOffsetImageFilter.cpp |
diff --git a/src/effects/SkOffsetImageFilter.cpp b/src/effects/SkOffsetImageFilter.cpp |
index b7ded082d9c3b462471cbe5f9eeea05c9839b2eb..90528c62d80eb1312f676d4fa02718969c17986b 100644 |
--- a/src/effects/SkOffsetImageFilter.cpp |
+++ b/src/effects/SkOffsetImageFilter.cpp |
@@ -108,3 +108,12 @@ |
: INHERITED(1, &input, cropRect, uniqueID) { |
fOffset.set(dx, dy); |
} |
+ |
+#ifdef SK_SUPPORT_LEGACY_DEEPFLATTENING |
+SkOffsetImageFilter::SkOffsetImageFilter(SkReadBuffer& buffer) |
+ : INHERITED(1, buffer) { |
+ buffer.readPoint(&fOffset); |
+ buffer.validate(SkScalarIsFinite(fOffset.fX) && |
+ SkScalarIsFinite(fOffset.fY)); |
+} |
+#endif |