Index: src/codec/SkJpegCodec.cpp |
diff --git a/src/codec/SkJpegCodec.cpp b/src/codec/SkJpegCodec.cpp |
index 5d24694708ad99fcc8284ee4b18351f2635023ad..85de356118ccda95e314c7b2ec7376100bb6684b 100644 |
--- a/src/codec/SkJpegCodec.cpp |
+++ b/src/codec/SkJpegCodec.cpp |
@@ -526,11 +526,15 @@ void SkJpegCodec::initializeSwizzler(const SkImageInfo& dstInfo, const Options& |
switch (fDecoderMgr->dinfo()->out_color_space) { |
case JCS_RGB: |
preSwizzled = false; |
- swizzlerInfo.setColor(SkEncodedInfo::kRGB_Color); |
+ swizzlerInfo = SkEncodedInfo::Make(SkEncodedInfo::kRGB_Color, |
+ swizzlerInfo.alpha(), |
+ swizzlerInfo.bitsPerComponent()); |
break; |
case JCS_CMYK: |
preSwizzled = false; |
- swizzlerInfo.setColor(SkEncodedInfo::kInvertedCMYK_Color); |
+ swizzlerInfo = SkEncodedInfo::Make( |
+ SkEncodedInfo::kInvertedCMYK_Color, swizzlerInfo.alpha(), |
+ swizzlerInfo.bitsPerComponent()); |
break; |
default: |
break; |