Index: src/codec/SkJpegCodec.cpp |
diff --git a/src/codec/SkJpegCodec.cpp b/src/codec/SkJpegCodec.cpp |
index d2f7cdb0fa382db95a0e69c9ca9dea607a691f3b..c865fbccd1a1bd9dae8de251e73f5f0274ae07ce 100644 |
--- a/src/codec/SkJpegCodec.cpp |
+++ b/src/codec/SkJpegCodec.cpp |
@@ -517,7 +517,8 @@ int SkJpegCodec::readRows(const SkImageInfo& dstInfo, void* dst, size_t rowBytes |
} |
if (fColorXform) { |
- fColorXform->apply(dst, swizzleDst, dstWidth, dstInfo.colorType(), kOpaque_SkAlphaType); |
+ fColorXform->apply(dst, swizzleDst, dstWidth, select_xform_format(dstInfo.colorType()), |
+ kOpaque_SkAlphaType); |
dst = SkTAddOffset<void>(dst, rowBytes); |
} |