Index: src/animator/SkDrawBitmap.cpp |
diff --git a/src/animator/SkDrawBitmap.cpp b/src/animator/SkDrawBitmap.cpp |
index f481ee7dba619ad8d2373f274fe4511ef2a24b03..53497749a42a6ae6f951e01c3da062832d39e812 100644 |
--- a/src/animator/SkDrawBitmap.cpp |
+++ b/src/animator/SkDrawBitmap.cpp |
@@ -89,8 +89,8 @@ void SkDrawBitmap::onEndElement(SkAnimateMaker&) { |
SkASSERT(height != -1); |
SkASSERT(rowBytes >= 0); |
SkColorType colorType = SkColorType(format); |
- fBitmap.setInfo(SkImageInfo::Make(width, height, colorType, kPremul_SkAlphaType), rowBytes); |
- fBitmap.allocPixels(); |
+ fBitmap.allocPixels(SkImageInfo::Make(width, height, colorType, kPremul_SkAlphaType), |
+ rowBytes); |
if (fColorSet) |
fBitmap.eraseColor(fColor); |
} |