Index: src/codec/SkJpegCodec.cpp |
diff --git a/src/codec/SkJpegCodec.cpp b/src/codec/SkJpegCodec.cpp |
index d158b4215a0a632f9e5b8ad2a6b61777c98c3bd5..2eea46bb2bb07caa64fc0c6cbc2a396769064e5f 100644 |
--- a/src/codec/SkJpegCodec.cpp |
+++ b/src/codec/SkJpegCodec.cpp |
@@ -475,10 +475,9 @@ bool SkJpegCodec::onDimensionsSupported(const SkISize& size) { |
} |
static bool needs_color_xform(const SkImageInfo& dstInfo, const SkImageInfo& srcInfo) { |
- // FIXME (msarett): |
- // Do a better check for color space equality. |
return (kRGBA_F16_SkColorType == dstInfo.colorType()) || |
- (dstInfo.colorSpace() && (dstInfo.colorSpace() != srcInfo.colorSpace())); |
+ (dstInfo.colorSpace() && !SkColorSpace::Equals(srcInfo.colorSpace(), |
+ dstInfo.colorSpace())); |
} |
int SkJpegCodec::readRows(const SkImageInfo& dstInfo, void* dst, size_t rowBytes, int count) { |