Index: src/effects/SkBitmapSource.cpp |
diff --git a/src/effects/SkBitmapSource.cpp b/src/effects/SkBitmapSource.cpp |
index 1d8078d59f317578b1e1584d50c1540f9462a988..4da77a9e02de7e196bba833db44f8558694f51cb 100644 |
--- a/src/effects/SkBitmapSource.cpp |
+++ b/src/effects/SkBitmapSource.cpp |
@@ -28,11 +28,7 @@ SkBitmapSource::SkBitmapSource(const SkBitmap& bitmap, const SkRect& srcRect, co |
#ifdef SK_SUPPORT_LEGACY_DEEPFLATTENING |
SkBitmapSource::SkBitmapSource(SkReadBuffer& buffer) : INHERITED(0, buffer) { |
- if (buffer.isVersionLT(SkReadBuffer::kNoMoreBitmapFlatten_Version)) { |
- fBitmap.legacyUnflatten(buffer); |
- } else { |
- buffer.readBitmap(&fBitmap); |
- } |
+ buffer.readBitmap(&fBitmap); |
buffer.readRect(&fSrcRect); |
buffer.readRect(&fDstRect); |
buffer.validate(buffer.isValid() && SkIsValidRect(fSrcRect) && SkIsValidRect(fDstRect)); |