Index: src/core/SkPictureShader.cpp |
diff --git a/src/core/SkPictureShader.cpp b/src/core/SkPictureShader.cpp |
index 5fded935cccb8728d776a348ef3326d1d66ccd9a..1f32a7ecdfd5c8a99b0e39046c10756b600213b0 100644 |
--- a/src/core/SkPictureShader.cpp |
+++ b/src/core/SkPictureShader.cpp |
@@ -100,6 +100,15 @@ |
, fTmy(tmy) { |
} |
+#ifdef SK_SUPPORT_LEGACY_DEEPFLATTENING |
+SkPictureShader::SkPictureShader(SkReadBuffer& buffer) : INHERITED(buffer) { |
+ fTmx = static_cast<SkShader::TileMode>(buffer.read32()); |
+ fTmy = static_cast<SkShader::TileMode>(buffer.read32()); |
+ buffer.readRect(&fTile); |
+ fPicture = SkPicture::CreateFromBuffer(buffer); |
+} |
+#endif |
+ |
SkPictureShader::~SkPictureShader() { |
fPicture->unref(); |
} |