Index: src/codec/SkPngCodec.cpp |
diff --git a/src/codec/SkPngCodec.cpp b/src/codec/SkPngCodec.cpp |
index 1e633eaaed3b76b5e9aae380e8a1605b498d84cf..3fdb8586d5ae6f875bc5a29b9723e501ba828f78 100644 |
--- a/src/codec/SkPngCodec.cpp |
+++ b/src/codec/SkPngCodec.cpp |
@@ -1111,8 +1111,7 @@ bool SkPngCodec::initializeXforms(const SkImageInfo& dstInfo, const Options& opt |
fColorXform = nullptr; |
if (needs_color_xform(dstInfo, this->getInfo())) { |
- fColorXform = SkColorSpaceXform::New(sk_ref_sp(this->getInfo().colorSpace()), |
- sk_ref_sp(dstInfo.colorSpace())); |
+ fColorXform = SkColorSpaceXform::New(this->getInfo().colorSpace(), dstInfo.colorSpace()); |
SkASSERT(fColorXform); |
} |