aboutsummaryrefslogtreecommitdiffhomepage
path: root/dm
diff options
context:
space:
mode:
authorGravatar msarett <msarett@google.com>2016-09-13 09:04:11 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-09-13 09:04:11 -0700
commitf7eb6fc71abd7649d65a877e7a10d1060afc0c88 (patch)
tree873bfaad147f112a8963a016c0cf640faeafde4c /dm
parentf06e5183004fb3c43b6cc4cb3b4140443d99b8e6 (diff)
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
Diffstat (limited to 'dm')
-rw-r--r--dm/DMSrcSink.cpp2
1 files changed, 1 insertions, 1 deletions
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);
}