Index: src/animator/SkDrawBitmap.cpp |
diff --git a/src/animator/SkDrawBitmap.cpp b/src/animator/SkDrawBitmap.cpp |
index ce96efbed267b11cccc46b9bf277acca2b23ead4..f481ee7dba619ad8d2373f274fe4511ef2a24b03 100644 |
--- a/src/animator/SkDrawBitmap.cpp |
+++ b/src/animator/SkDrawBitmap.cpp |
@@ -56,7 +56,7 @@ const SkMemberInfo SkDrawBitmap::fInfo[] = { |
DEFINE_GET_MEMBER(SkDrawBitmap); |
-SkDrawBitmap::SkDrawBitmap() : format((SkBitmap::Config) -1), height(-1), |
+SkDrawBitmap::SkDrawBitmap() : format((SkColorType) -1), height(-1), |
rowBytes(0), width(-1), fColor(0), fColorSet(false) { |
} |
@@ -88,7 +88,7 @@ void SkDrawBitmap::onEndElement(SkAnimateMaker&) { |
SkASSERT(width != -1); |
SkASSERT(height != -1); |
SkASSERT(rowBytes >= 0); |
- SkColorType colorType = SkBitmapConfigToColorType((SkBitmap::Config)format); |
+ SkColorType colorType = SkColorType(format); |
fBitmap.setInfo(SkImageInfo::Make(width, height, colorType, kPremul_SkAlphaType), rowBytes); |
fBitmap.allocPixels(); |
if (fColorSet) |