| Index: Source/platform/graphics/GraphicsContext.cpp
|
| diff --git a/Source/platform/graphics/GraphicsContext.cpp b/Source/platform/graphics/GraphicsContext.cpp
|
| index a4aca79b256e33ae0af1ce6411d82da15a655122..85d38bff20eab2d940e3755af6c68d7a80bbae4f 100644
|
| --- a/Source/platform/graphics/GraphicsContext.cpp
|
| +++ b/Source/platform/graphics/GraphicsContext.cpp
|
| @@ -798,7 +798,7 @@ void GraphicsContext::drawLineForDocumentMarker(const FloatPoint& pt, float widt
|
| const int rowPixels = 4 * deviceScaleFactor;
|
| const int colPixels = 3 * deviceScaleFactor;
|
| SkBitmap bitmap;
|
| - if (!bitmap.allocN32Pixels(rowPixels, colPixels))
|
| + if (!bitmap.tryAllocN32Pixels(rowPixels, colPixels))
|
| return;
|
|
|
| bitmap.eraseARGB(0, 0, 0, 0);
|
| @@ -856,7 +856,7 @@ void GraphicsContext::drawLineForDocumentMarker(const FloatPoint& pt, float widt
|
| const int rowPixels = 32 * deviceScaleFactor; // Must be multiple of 4 for pattern below.
|
| const int colPixels = 2 * deviceScaleFactor;
|
| SkBitmap bitmap;
|
| - if (!bitmap.allocN32Pixels(rowPixels, colPixels))
|
| + if (!bitmap.tryAllocN32Pixels(rowPixels, colPixels))
|
| return;
|
|
|
| bitmap.eraseARGB(0, 0, 0, 0);
|
|
|