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