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