| Index: src/utils/mac/SkCreateCGImageRef.cpp
|
| diff --git a/src/utils/mac/SkCreateCGImageRef.cpp b/src/utils/mac/SkCreateCGImageRef.cpp
|
| index 01b774df09f4fba8ce6a79a54d7c74f0ba7a81c8..14a24d87104dbf0baa8c12966fb3e44c20b2448c 100644
|
| --- a/src/utils/mac/SkCreateCGImageRef.cpp
|
| +++ b/src/utils/mac/SkCreateCGImageRef.cpp
|
| @@ -221,7 +221,7 @@ bool SkPDFDocumentToBitmap(SkStream* stream, SkBitmap* output) {
|
| int h = (int)CGRectGetHeight(bounds);
|
|
|
| SkBitmap bitmap;
|
| - if (!bitmap.allocPixels(SkImageInfo::MakeN32Premul(w, h))) {
|
| + if (!bitmap.tryAllocN32Pixels(w, h)) {
|
| return false;
|
| }
|
| bitmap.eraseColor(SK_ColorWHITE);
|
| @@ -287,7 +287,7 @@ bool SkCreateBitmapFromCGImage(SkBitmap* dst, CGImageRef image, SkISize* scaleTo
|
| SkImageInfo info = SkImageInfo::MakeN32Premul(width, height);
|
|
|
| SkBitmap tmp;
|
| - if (!tmp.allocPixels(info)) {
|
| + if (!tmp.tryAllocPixels(info)) {
|
| return false;
|
| }
|
|
|
|
|