| Index: src/pdf/SkPDFDevice.cpp
|
| diff --git a/src/pdf/SkPDFDevice.cpp b/src/pdf/SkPDFDevice.cpp
|
| index ec07a8ff0ed42b8872fb78bdbd3296632180b84a..f4ea694451d93433c797aeae6f8be78b11b10bd0 100644
|
| --- a/src/pdf/SkPDFDevice.cpp
|
| +++ b/src/pdf/SkPDFDevice.cpp
|
| @@ -2120,7 +2120,7 @@ void SkPDFDevice::internalDrawBitmap(const SkMatrix& origMatrix,
|
|
|
| const int w = SkScalarCeilToInt(physicalPerspectiveOutline.getBounds().width());
|
| const int h = SkScalarCeilToInt(physicalPerspectiveOutline.getBounds().height());
|
| - if (!perspectiveBitmap.allocPixels(SkImageInfo::MakeN32Premul(w, h))) {
|
| + if (!perspectiveBitmap.tryAllocN32Pixels(w, h)) {
|
| return;
|
| }
|
| perspectiveBitmap.eraseColor(SK_ColorTRANSPARENT);
|
|
|