Index: src/effects/SkBitmapSource.cpp |
diff --git a/src/effects/SkBitmapSource.cpp b/src/effects/SkBitmapSource.cpp |
index ff76ab4bba71fd314e371ef7163cc736b7b06f15..4da77a9e02de7e196bba833db44f8558694f51cb 100644 |
--- a/src/effects/SkBitmapSource.cpp |
+++ b/src/effects/SkBitmapSource.cpp |
@@ -25,6 +25,15 @@ |
, fBitmap(bitmap) |
, fSrcRect(srcRect) |
, fDstRect(dstRect) {} |
+ |
+#ifdef SK_SUPPORT_LEGACY_DEEPFLATTENING |
+SkBitmapSource::SkBitmapSource(SkReadBuffer& buffer) : INHERITED(0, buffer) { |
+ buffer.readBitmap(&fBitmap); |
+ buffer.readRect(&fSrcRect); |
+ buffer.readRect(&fDstRect); |
+ buffer.validate(buffer.isValid() && SkIsValidRect(fSrcRect) && SkIsValidRect(fDstRect)); |
+} |
+#endif |
SkFlattenable* SkBitmapSource::CreateProc(SkReadBuffer& buffer) { |
SkRect src, dst; |