Index: src/core/SkBitmapProcShader.cpp |
diff --git a/src/core/SkBitmapProcShader.cpp b/src/core/SkBitmapProcShader.cpp |
index f01d55905824a34b3bfaa154fcaf0fb68c623abd..1a451fd5918de64c558edfe2cdb7a5c73b66eec1 100644 |
--- a/src/core/SkBitmapProcShader.cpp |
+++ b/src/core/SkBitmapProcShader.cpp |
@@ -39,6 +39,15 @@ |
fTileModeY = (uint8_t)tmy; |
} |
+#ifdef SK_SUPPORT_LEGACY_DEEPFLATTENING |
+SkBitmapProcShader::SkBitmapProcShader(SkReadBuffer& buffer) : INHERITED(buffer) { |
+ buffer.readBitmap(&fRawBitmap); |
+ fRawBitmap.setImmutable(); |
+ fTileModeX = buffer.readUInt(); |
+ fTileModeY = buffer.readUInt(); |
+} |
+#endif |
+ |
SkShader::BitmapType SkBitmapProcShader::asABitmap(SkBitmap* texture, |
SkMatrix* texM, |
TileMode xy[]) const { |