Index: src/effects/SkPictureImageFilter.cpp |
diff --git a/src/effects/SkPictureImageFilter.cpp b/src/effects/SkPictureImageFilter.cpp |
index 5399ea7476c2b2e269d03b4047e571adf4cbbd19..da5597d69905385bb4fc610cd22aa60735b72724 100644 |
--- a/src/effects/SkPictureImageFilter.cpp |
+++ b/src/effects/SkPictureImageFilter.cpp |
@@ -29,6 +29,21 @@ |
SkPictureImageFilter::~SkPictureImageFilter() { |
SkSafeUnref(fPicture); |
} |
+ |
+#ifdef SK_SUPPORT_LEGACY_DEEPFLATTENING |
+SkPictureImageFilter::SkPictureImageFilter(SkReadBuffer& buffer) |
+ : INHERITED(0, buffer), |
+ fPicture(NULL) { |
+ if (!buffer.isCrossProcess()) { |
+ if (buffer.readBool()) { |
+ fPicture = SkPicture::CreateFromBuffer(buffer); |
+ } |
+ } else { |
+ buffer.validate(!buffer.readBool()); |
+ } |
+ buffer.readRect(&fCropRect); |
+} |
+#endif |
SkFlattenable* SkPictureImageFilter::CreateProc(SkReadBuffer& buffer) { |
SkAutoTUnref<SkPicture> picture; |