Index: dm/DMSrcSink.cpp |
diff --git a/dm/DMSrcSink.cpp b/dm/DMSrcSink.cpp |
index c3c8a7bc6e9b6a4bfd5c2298fc626c7cce25153f..cb3b7afcd618e8b28281a662419154693b4f483f 100644 |
--- a/dm/DMSrcSink.cpp |
+++ b/dm/DMSrcSink.cpp |
@@ -914,7 +914,7 @@ Error ColorCodecSrc::draw(SkCanvas* canvas) const { |
size_t rowBytes = bitmap.rowBytes(); |
SkCodec::Result r = codec->getPixels(decodeInfo, bitmap.getPixels(), rowBytes); |
- if (SkCodec::kSuccess != r) { |
+ if (SkCodec::kSuccess != r && SkCodec::kIncompleteInput != r) { |
return SkStringPrintf("Couldn't getPixels %s. Error code %d", fPath.c_str(), r); |
} |