Index: src/codec/SkCodec.cpp |
diff --git a/src/codec/SkCodec.cpp b/src/codec/SkCodec.cpp |
index d7cfb3749708f04e4f3d2adba765c82205dce4f3..4a1902dc53faf4b089c88fe01459491b4557d475 100644 |
--- a/src/codec/SkCodec.cpp |
+++ b/src/codec/SkCodec.cpp |
@@ -113,10 +113,11 @@ SkCodec* SkCodec::NewFromData(SkData* data, SkPngChunkReader* reader) { |
return NewFromStream(new SkMemoryStream(data), reader); |
} |
-SkCodec::SkCodec(const SkImageInfo& info, SkStream* stream) |
+SkCodec::SkCodec(const SkImageInfo& info, SkStream* stream, SkColorSpace* colorSpace) |
: fSrcInfo(info) |
, fStream(stream) |
, fNeedsRewind(false) |
+ , fColorSpace(colorSpace ? SkRef(colorSpace) : nullptr) |
, fDstInfo() |
, fOptions() |
, fCurrScanline(-1) |