Index: src/codec/SkWebpCodec.cpp |
diff --git a/src/codec/SkWebpCodec.cpp b/src/codec/SkWebpCodec.cpp |
index 86bda576e4b2d6801e5834d17108313eac1dd455..e25a57f6e54aa9e141ef3583e1a2070558504ed6 100644 |
--- a/src/codec/SkWebpCodec.cpp |
+++ b/src/codec/SkWebpCodec.cpp |
@@ -199,8 +199,7 @@ SkCodec::Result SkWebpCodec::onGetPixels(const SkImageInfo& dstInfo, void* dst, |
std::unique_ptr<SkColorSpaceXform> colorXform = nullptr; |
if (needs_color_xform(dstInfo, this->getInfo())) { |
- colorXform = SkColorSpaceXform::New(sk_ref_sp(this->getInfo().colorSpace()), |
- sk_ref_sp(dstInfo.colorSpace())); |
+ colorXform = SkColorSpaceXform::New(this->getInfo().colorSpace(), dstInfo.colorSpace()); |
SkASSERT(colorXform); |
} |