msarett 2016-02-03 15:31:18 -08:00 committed by Commit bot
parent 095742419d
commit e1daa48b9a

View File

@ -282,6 +282,10 @@ void premultiply_if_necessary(SkBitmap& bitmap) {
// No need to premultiply kGray or k565 outputs.
break;
}
// In the kIndex_8 case, the canvas won't even try to draw unless we mark the
// bitmap as kPremul.
bitmap.setAlphaType(kPremul_SkAlphaType);
}
bool get_decode_info(SkImageInfo* decodeInfo, SkColorType canvasColorType,