Index: src/effects/SkBitmapSource.cpp |
diff --git a/src/effects/SkBitmapSource.cpp b/src/effects/SkBitmapSource.cpp |
index ef5ea8692568b3c818d977aa885b5517aa53aea3..b5ee1dd83464bc9087a33d340a0928bf568db6bf 100644 |
--- a/src/effects/SkBitmapSource.cpp |
+++ b/src/effects/SkBitmapSource.cpp |
@@ -31,7 +31,7 @@ SkBitmapSource::SkBitmapSource(SkFlattenableReadBuffer& buffer) |
fBitmap.unflatten(buffer); |
buffer.readRect(&fSrcRect); |
buffer.readRect(&fDstRect); |
- buffer.validate(SkIsValidRect(fSrcRect) && SkIsValidRect(fDstRect)); |
+ buffer.validate(buffer.isValid() && SkIsValidRect(fSrcRect) && SkIsValidRect(fDstRect)); |
} |
void SkBitmapSource::flatten(SkFlattenableWriteBuffer& buffer) const { |