Index: src/codec/SkAndroidCodec.cpp |
diff --git a/src/codec/SkAndroidCodec.cpp b/src/codec/SkAndroidCodec.cpp |
index 86c067558f0d9b857d86ee8ce98f141fe852b416..cf6e253d97eb7239bda24a49d98f4f830c33cb24 100644 |
--- a/src/codec/SkAndroidCodec.cpp |
+++ b/src/codec/SkAndroidCodec.cpp |
@@ -20,8 +20,8 @@ SkAndroidCodec::SkAndroidCodec(const SkImageInfo& info) |
: fInfo(info) |
{} |
-SkAndroidCodec* SkAndroidCodec::NewFromStream(SkStream* stream) { |
- SkAutoTDelete<SkCodec> codec(SkCodec::NewFromStream(stream)); |
+SkAndroidCodec* SkAndroidCodec::NewFromStream(SkStream* stream, SkPngChunkReader* chunkReader) { |
+ SkAutoTDelete<SkCodec> codec(SkCodec::NewFromStream(stream, chunkReader)); |
if (nullptr == codec) { |
return nullptr; |
} |
@@ -43,12 +43,12 @@ SkAndroidCodec* SkAndroidCodec::NewFromStream(SkStream* stream) { |
} |
} |
-SkAndroidCodec* SkAndroidCodec::NewFromData(SkData* data) { |
+SkAndroidCodec* SkAndroidCodec::NewFromData(SkData* data, SkPngChunkReader* chunkReader) { |
if (!data) { |
return nullptr; |
} |
- return NewFromStream(new SkMemoryStream(data)); |
+ return NewFromStream(new SkMemoryStream(data), chunkReader); |
} |
SkISize SkAndroidCodec::getSampledDimensions(int sampleSize) const { |