Index: src/images/SkImageDecoder_libbmp.cpp |
diff --git a/src/images/SkImageDecoder_libbmp.cpp b/src/images/SkImageDecoder_libbmp.cpp |
index 2283dbf51d480289427b71cbcc12559026bddd15..34a88ac6b00c7a161b5fda7bcdf21ee1002f3779 100644 |
--- a/src/images/SkImageDecoder_libbmp.cpp |
+++ b/src/images/SkImageDecoder_libbmp.cpp |
@@ -133,8 +133,8 @@ bool SkBMPImageDecoder::onDecode(SkStream* stream, SkBitmap* bm, Mode mode) { |
SkScaledBitmapSampler sampler(width, height, getSampleSize()); |
- bm->setConfig(config, sampler.scaledWidth(), sampler.scaledHeight()); |
- bm->setIsOpaque(true); |
+ bm->setConfig(config, sampler.scaledWidth(), sampler.scaledHeight(), 0, |
+ kOpaque_SkAlphaType); |
if (justBounds) { |
return true; |