Index: src/codec/SkAndroidCodec.cpp |
diff --git a/src/codec/SkAndroidCodec.cpp b/src/codec/SkAndroidCodec.cpp |
index c26b3eff9b49322d6f7a13f9564c212b1a35537a..5962102a4c78defa19d358448a8a992382d79f7f 100644 |
--- a/src/codec/SkAndroidCodec.cpp |
+++ b/src/codec/SkAndroidCodec.cpp |
@@ -16,8 +16,9 @@ static bool is_valid_sample_size(int sampleSize) { |
return sampleSize > 0; |
} |
-SkAndroidCodec::SkAndroidCodec(const SkImageInfo& info) |
- : fInfo(info) |
+SkAndroidCodec::SkAndroidCodec(SkCodec* codec) |
+ : fInfo(codec->getInfo()) |
+ , fCodec(codec) |
{} |
SkAndroidCodec* SkAndroidCodec::NewFromStream(SkStream* stream, SkPngChunkReader* chunkReader) { |