Index: src/codec/SkCodec.cpp |
diff --git a/src/codec/SkCodec.cpp b/src/codec/SkCodec.cpp |
index 955c86d609cca52f4ddb9925a32fac1ccc33a0dd..3da7f5fb07bd9f6381417ea904fb67c77a5d69a0 100644 |
--- a/src/codec/SkCodec.cpp |
+++ b/src/codec/SkCodec.cpp |
@@ -117,10 +117,10 @@ SkCodec* SkCodec::NewFromData(SkData* data, SkPngChunkReader* reader) { |
SkCodec::SkCodec(int width, int height, const SkEncodedInfo& info, SkStream* stream, |
sk_sp<SkColorSpace> colorSpace, Origin origin) |
: fEncodedInfo(info) |
- , fSrcInfo(info.makeImageInfo(width, height)) |
+ , fSrcInfo(info.makeImageInfo(width, height, colorSpace)) |
, fStream(stream) |
, fNeedsRewind(false) |
- , fColorSpace(colorSpace) |
+ , fColorSpace(std::move(colorSpace)) |
, fOrigin(origin) |
, fDstInfo() |
, fOptions() |