| Index: src/core/SkScalerContext.cpp
|
| diff --git a/src/core/SkScalerContext.cpp b/src/core/SkScalerContext.cpp
|
| index db3c0fb2f57e04c4aa490fb95638fd393d4b0d42..4d7f3629eb060f7763916be9ba910b902e1ff9be 100644
|
| --- a/src/core/SkScalerContext.cpp
|
| +++ b/src/core/SkScalerContext.cpp
|
| @@ -437,7 +437,7 @@ static void generateMask(const SkMask& mask, const SkPath& path,
|
| SkBitmap bm;
|
|
|
| if (0 == dstRB) {
|
| - if (!bm.allocPixels(info)) {
|
| + if (!bm.tryAllocPixels(info)) {
|
| // can't allocate offscreen, so empty the mask and return
|
| sk_bzero(mask.fImage, mask.computeImageSize());
|
| return;
|
|
|