Index: src/codec/SkCodec_libpng.cpp |
diff --git a/src/codec/SkCodec_libpng.cpp b/src/codec/SkCodec_libpng.cpp |
index f42af38fea707787f0fc760dba74d5486acf0572..bf0647dd24aeca259738708644782c8ace2db3be 100644 |
--- a/src/codec/SkCodec_libpng.cpp |
+++ b/src/codec/SkCodec_libpng.cpp |
@@ -363,8 +363,8 @@ static bool conversion_possible(const SkImageInfo& A, const SkImageInfo& B) { |
} |
SkCodec::Result SkPngCodec::onGetPixels(const SkImageInfo& requestedInfo, void* dst, |
- size_t rowBytes, SkPMColor ctable[], |
- int* ctableCount) { |
+ size_t rowBytes, const Options& options, |
+ SkPMColor ctable[], int* ctableCount) { |
if (!this->rewindIfNeeded()) { |
return kCouldNotRewind; |
} |
@@ -430,9 +430,9 @@ SkCodec::Result SkPngCodec::onGetPixels(const SkImageInfo& requestedInfo, void* |
sc = SkSwizzler::kRGBA; |
} |
const SkPMColor* colors = colorTable ? colorTable->readColors() : NULL; |
- // TODO: Support skipZeroes. |
swizzler.reset(SkSwizzler::CreateSwizzler(sc, colors, requestedInfo, |
- dst, rowBytes, false)); |
+ dst, rowBytes, |
+ options.fZeroInitialized)); |
if (!swizzler) { |
// FIXME: CreateSwizzler could fail for another reason. |
return kUnimplemented; |