Index: src/images/SkImageDecoder_wbmp.cpp |
diff --git a/src/images/SkImageDecoder_wbmp.cpp b/src/images/SkImageDecoder_wbmp.cpp |
index 4a9944dbcda30f85fe743518484346870f292ecf..8dce62cdf003ae6878805691373012f1a02356b6 100644 |
--- a/src/images/SkImageDecoder_wbmp.cpp |
+++ b/src/images/SkImageDecoder_wbmp.cpp |
@@ -111,8 +111,8 @@ bool SkWBMPImageDecoder::onDecode(SkStream* stream, SkBitmap* decodedBitmap, |
int width = head.fWidth; |
int height = head.fHeight; |
- decodedBitmap->setConfig(SkBitmap::kIndex8_Config, width, height); |
- decodedBitmap->setIsOpaque(true); |
+ decodedBitmap->setConfig(SkBitmap::kIndex8_Config, width, height, 0, |
+ kOpaque_SkAlphaType); |
if (SkImageDecoder::kDecodeBounds_Mode == mode) { |
return true; |