Index: src/utils/SkPDFRasterizer.cpp |
diff --git a/src/utils/SkPDFRasterizer.cpp b/src/utils/SkPDFRasterizer.cpp |
index 68a31196ecd6ee093bad9e9a2909315507f1f442..66634804bc6aa2371ecf983eae50fb8a16c5d5d8 100644 |
--- a/src/utils/SkPDFRasterizer.cpp |
+++ b/src/utils/SkPDFRasterizer.cpp |
@@ -50,8 +50,7 @@ bool SkPopplerRasterizePDF(SkStream* pdf, SkBitmap* output) { |
char *imgData = image.data(); |
SkBitmap bitmap; |
- bitmap.setConfig(SkBitmap::kARGB_8888_Config, width, height); |
- if (!bitmap.allocPixels()) { |
+ if (!bitmap.allocPixels(SkImageInfo::MakeN32Premul(width, height))) { |
return false; |
} |
bitmap.eraseColor(SK_ColorWHITE); |