| Index: dm/DMSrcSink.cpp
|
| diff --git a/dm/DMSrcSink.cpp b/dm/DMSrcSink.cpp
|
| index 9e9a77c27124e85350406c7e84ec3b2f8f5f0886..120552dbb8b789e8101799869825125a28d5502e 100644
|
| --- a/dm/DMSrcSink.cpp
|
| +++ b/dm/DMSrcSink.cpp
|
| @@ -80,7 +80,13 @@ Error CodecSrc::draw(SkCanvas* canvas) const {
|
| SkColorType canvasColorType = canvasInfo.colorType();
|
| switch (fDstColorType) {
|
| case kIndex8_Always_DstColorType:
|
| + decodeInfo = codec->getInfo().makeColorType(kIndex_8_SkColorType);
|
| + if (kRGB_565_SkColorType == canvasColorType) {
|
| + return Error::Nonfatal("Testing non-565 to 565 is uninteresting.");
|
| + }
|
| + break;
|
| case kGrayscale_Always_DstColorType:
|
| + decodeInfo = codec->getInfo().makeColorType(kGray_8_SkColorType);
|
| if (kRGB_565_SkColorType == canvasColorType) {
|
| return Error::Nonfatal("Testing non-565 to 565 is uninteresting.");
|
| }
|
|
|