Index: src/images/SkImageDecoder_libico.cpp |
diff --git a/src/images/SkImageDecoder_libico.cpp b/src/images/SkImageDecoder_libico.cpp |
index 2b65a36c76f3fe8bce69aac4a075495aa1271967..c6dd6f08367c8253ee08a6a3aee30859c4a441d7 100644 |
--- a/src/images/SkImageDecoder_libico.cpp |
+++ b/src/images/SkImageDecoder_libico.cpp |
@@ -246,7 +246,7 @@ bool SkICOImageDecoder::onDecode(SkStream* stream, SkBitmap* bm, Mode mode) |
//if the andbitmap (mask) is all zeroes, then we can easily do an index bitmap |
//however, with small images with large colortables, maybe it's better to still do argb_8888 |
- bm->setConfig(SkBitmap::kARGB_8888_Config, w, h, calculateRowBytesFor8888(w, bitCount)); |
+ bm->setInfo(SkImageInfo::MakeN32Premul(w, h), calculateRowBytesFor8888(w, bitCount)); |
if (SkImageDecoder::kDecodeBounds_Mode == mode) { |
delete[] colors; |