Index: src/images/SkMovie_gif.cpp |
diff --git a/src/images/SkMovie_gif.cpp b/src/images/SkMovie_gif.cpp |
index b6d068a391c64d7e9e9dc3905f04cfc6558df753..decefd5acc540751e1a4785f19ead7fe946143a8 100644 |
--- a/src/images/SkMovie_gif.cpp |
+++ b/src/images/SkMovie_gif.cpp |
@@ -364,13 +364,11 @@ bool SkGIFMovie::onGetBitmap(SkBitmap* bm) |
startIndex = 0; |
// create bitmap |
- bm->setConfig(SkBitmap::kARGB_8888_Config, width, height, 0); |
- if (!bm->allocPixels(NULL)) { |
+ if (!bm->allocPixels(SkImageInfo::MakeN32Premul(width, height))) { |
return false; |
} |
// create bitmap for backup |
- fBackup.setConfig(SkBitmap::kARGB_8888_Config, width, height, 0); |
- if (!fBackup.allocPixels(NULL)) { |
+ if (!fBackup.allocPixels(SkImageInfo::MakeN32Premul(width, height))) { |
return false; |
} |
} else if (startIndex > fCurrIndex) { |