Index: src/codec/SkCodec_libbmp.cpp |
diff --git a/src/codec/SkCodec_libbmp.cpp b/src/codec/SkCodec_libbmp.cpp |
index bd5d2ca7c557fa7c4157428b8e5201cde2320254..ef9ef21acef92a134c13f667a88b70a7b582e114 100644 |
--- a/src/codec/SkCodec_libbmp.cpp |
+++ b/src/codec/SkCodec_libbmp.cpp |
@@ -1134,7 +1134,7 @@ SkCodec::Result SkBmpCodec::decode(const SkImageInfo& dstInfo, |
// Create swizzler |
SkAutoTDelete<SkSwizzler> swizzler(SkSwizzler::CreateSwizzler(config, |
- colorPtr, dstInfo, dst, dstRowBytes, kNo_ZeroInitialized)); |
+ colorPtr, dstInfo, dst, dstRowBytes, opts.fZeroInitialized, 1)); |
// Allocate space for a row buffer and a source for the swizzler |
SkAutoTDeleteArray<uint8_t> srcBuffer(SkNEW_ARRAY(uint8_t, rowBytes)); |