Index: src/animator/SkDrawBitmap.cpp |
diff --git a/src/animator/SkDrawBitmap.cpp b/src/animator/SkDrawBitmap.cpp |
index 327e81365af40e2800646a0c07024a5b8699613c..ce96efbed267b11cccc46b9bf277acca2b23ead4 100644 |
--- a/src/animator/SkDrawBitmap.cpp |
+++ b/src/animator/SkDrawBitmap.cpp |
@@ -88,7 +88,8 @@ void SkDrawBitmap::onEndElement(SkAnimateMaker&) { |
SkASSERT(width != -1); |
SkASSERT(height != -1); |
SkASSERT(rowBytes >= 0); |
- fBitmap.setConfig((SkBitmap::Config) format, width, height, rowBytes); |
+ SkColorType colorType = SkBitmapConfigToColorType((SkBitmap::Config)format); |
+ fBitmap.setInfo(SkImageInfo::Make(width, height, colorType, kPremul_SkAlphaType), rowBytes); |
fBitmap.allocPixels(); |
if (fColorSet) |
fBitmap.eraseColor(fColor); |