Index: src/images/SkImageDecoder_wbmp.cpp |
diff --git a/src/images/SkImageDecoder_wbmp.cpp b/src/images/SkImageDecoder_wbmp.cpp |
index 8dce62cdf003ae6878805691373012f1a02356b6..0bf138940da8a50242aab08ea8a3384245eb6e3a 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, 0, |
- kOpaque_SkAlphaType); |
+ decodedBitmap->setInfo(SkImageInfo::Make(width, height, |
+ kIndex_8_SkColorType, kOpaque_SkAlphaType)); |
if (SkImageDecoder::kDecodeBounds_Mode == mode) { |
return true; |