Index: src/effects/SkTileImageFilter.cpp |
diff --git a/src/effects/SkTileImageFilter.cpp b/src/effects/SkTileImageFilter.cpp |
index 7d3b72f0c6200bbd15f428b5bb22f866dc4baccb..c5eace0b74ddd598311af434bb9128cc30437a82 100644 |
--- a/src/effects/SkTileImageFilter.cpp |
+++ b/src/effects/SkTileImageFilter.cpp |
@@ -61,7 +61,7 @@ SkTileImageFilter::SkTileImageFilter(SkFlattenableReadBuffer& buffer) |
: INHERITED(1, buffer) { |
buffer.readRect(&fSrcRect); |
buffer.readRect(&fDstRect); |
- buffer.validate(SkIsValidRect(fSrcRect) && SkIsValidRect(fDstRect)); |
+ buffer.validate(buffer.isValid() && SkIsValidRect(fSrcRect) && SkIsValidRect(fDstRect)); |
} |
void SkTileImageFilter::flatten(SkFlattenableWriteBuffer& buffer) const { |