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