From f7eb6fc71abd7649d65a877e7a10d1060afc0c88 Mon Sep 17 00:00:00 2001 From: msarett Date: Tue, 13 Sep 2016 09:04:11 -0700 Subject: Implement Fill() for incomplete decodes to RGBA_F16 Before this patch, we would hit an SkASSERT(false). BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2335203002 Review-Url: https://codereview.chromium.org/2335203002 --- dm/DMSrcSink.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dm') diff --git a/dm/DMSrcSink.cpp b/dm/DMSrcSink.cpp index 6b330231d2..0c7de850b7 100644 --- a/dm/DMSrcSink.cpp +++ b/dm/DMSrcSink.cpp @@ -915,7 +915,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); } -- cgit v1.2.3