| Index: src/core/SkBitmapDevice.cpp
|
| diff --git a/src/core/SkBitmapDevice.cpp b/src/core/SkBitmapDevice.cpp
|
| index 0570fd9afdec7cf2890aae728f9c28fcac192aaa..4b4f45317f5ee78d68cfde34f88273184b6144a5 100644
|
| --- a/src/core/SkBitmapDevice.cpp
|
| +++ b/src/core/SkBitmapDevice.cpp
|
| @@ -164,10 +164,8 @@ void SkBitmapDevice::writePixels(const SkBitmap& bitmap,
|
| drawSprite = false;
|
| } else {
|
| // we convert to a temporary bitmap and draw that as a sprite
|
| - dstBmp.setConfig(SkBitmap::kARGB_8888_Config,
|
| - spriteRect.width(),
|
| - spriteRect.height());
|
| - if (!dstBmp.allocPixels()) {
|
| + if (!dstBmp.allocPixels(SkImageInfo::MakeN32Premul(spriteRect.width(),
|
| + spriteRect.height()))) {
|
| return;
|
| }
|
| drawSprite = true;
|
|
|