Index: src/codec/SkJpegDecoderMgr.cpp |
diff --git a/src/codec/SkJpegDecoderMgr.cpp b/src/codec/SkJpegDecoderMgr.cpp |
index f0ed4522ca6e562eac23e5134e8bc315c02d7c60..9e79dda9585f0cfd62f9051d262b690537b7b5d6 100644 |
--- a/src/codec/SkJpegDecoderMgr.cpp |
+++ b/src/codec/SkJpegDecoderMgr.cpp |
@@ -39,22 +39,9 @@ SkCodec::Result JpegDecoderMgr::returnFailure(const char caller[], SkCodec::Resu |
SkColorType JpegDecoderMgr::getColorType() { |
switch (fDInfo.jpeg_color_space) { |
- case JCS_CMYK: |
- case JCS_YCCK: |
- // libjpeg cannot convert from CMYK or YCCK to RGB. |
- // Here, we ask libjpeg to give us CMYK samples back and |
- // we will later manually convert them to RGB. |
- fDInfo.out_color_space = JCS_CMYK; |
- return kN32_SkColorType; |
case JCS_GRAYSCALE: |
- fDInfo.out_color_space = JCS_GRAYSCALE; |
return kGray_8_SkColorType; |
default: |
-#ifdef ANDROID_RGB |
- fDInfo.out_color_space = JCS_RGBA_8888; |
-#else |
- fDInfo.out_color_space = JCS_RGB; |
-#endif |
return kN32_SkColorType; |
} |
} |