| Index: dm/DMSrcSink.cpp
|
| diff --git a/dm/DMSrcSink.cpp b/dm/DMSrcSink.cpp
|
| index 30185a2ab1faf8babbb8d720e6ea950c0f5e0718..4b297c1e107e42e7dbc51afb9a66956fce58edbc 100644
|
| --- a/dm/DMSrcSink.cpp
|
| +++ b/dm/DMSrcSink.cpp
|
| @@ -473,6 +473,13 @@ Error CodecSrc::draw(SkCanvas* canvas) const {
|
| }
|
| break;
|
| }
|
| + case SkCodec::kInvalidConversion:
|
| + if (i > 0 && (decodeInfo.colorType() == kRGB_565_SkColorType
|
| + || decodeInfo.colorType() == kIndex_8_SkColorType)) {
|
| + return Error::Nonfatal(SkStringPrintf(
|
| + "Cannot decode frame %i to 565/Index8 (%s).", i, fPath.c_str()));
|
| + }
|
| + // Fall through.
|
| default:
|
| return SkStringPrintf("Couldn't getPixels for frame %i in %s.",
|
| i, fPath.c_str());
|
|
|