Index: src/codec/SkJpegCodec.cpp |
diff --git a/src/codec/SkJpegCodec.cpp b/src/codec/SkJpegCodec.cpp |
index 2baf51a00925db4055e53158d040324f565f062f..4557e45673eb124a4ae346467b77a21cc955f8fa 100644 |
--- a/src/codec/SkJpegCodec.cpp |
+++ b/src/codec/SkJpegCodec.cpp |
@@ -246,8 +246,12 @@ bool SkJpegCodec::setOutputColorSpace(const SkImageInfo& dst) { |
return true; |
case kRGB_565_SkColorType: |
if (isCMYK) { |
+ // FIXME (msarett): We need to support 565 here. It's not hard to do, considering |
+ // we already convert CMYK to RGBA, I just need to do it. I think it might be |
+ // best to do this in SkSwizzler and also move convert_CMYK_to_RGBA into SkSwizzler. |
return false; |
} else { |
+ fDecoderMgr->dinfo()->dither_mode = JDITHER_NONE; |
fDecoderMgr->dinfo()->out_color_space = JCS_RGB565; |
} |
return true; |