Index: src/codec/SkCodec.cpp |
diff --git a/src/codec/SkCodec.cpp b/src/codec/SkCodec.cpp |
index 8468f8a09996d1c7e79363970f9103e106049c7a..7bc831a6ac52f027265a556d29a1b8e3acce3a14 100644 |
--- a/src/codec/SkCodec.cpp |
+++ b/src/codec/SkCodec.cpp |
@@ -114,10 +114,9 @@ |
return NewFromStream(new SkMemoryStream(data), 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)) |
+SkCodec::SkCodec(const SkImageInfo& info, SkStream* stream, sk_sp<SkColorSpace> colorSpace, |
+ Origin origin) |
+ : fSrcInfo(info) |
, fStream(stream) |
, fNeedsRewind(false) |
, fColorSpace(colorSpace) |