Index: src/core/SkDevice.cpp |
diff --git a/src/core/SkDevice.cpp b/src/core/SkDevice.cpp |
index 0c9e9d66b6bd5b62eb1db811206ddb83de4497fa..c08ae26159312bdc61380ce8704f16b37363566f 100644 |
--- a/src/core/SkDevice.cpp |
+++ b/src/core/SkDevice.cpp |
@@ -92,9 +92,8 @@ bool SkBaseDevice::readPixels(SkBitmap* bitmap, int x, int y, |
SkBitmap tmp; |
SkBitmap* bmp; |
if (bitmap->isNull()) { |
- tmp.setConfig(SkBitmap::kARGB_8888_Config, bitmap->width(), |
- bitmap->height()); |
- if (!tmp.allocPixels()) { |
+ if (!tmp.allocPixels(SkImageInfo::MakeN32Premul(bitmap->width(), |
+ bitmap->height()))) { |
return false; |
} |
bmp = &tmp; |