| Index: tests/DrawBitmapRectTest.cpp
|
| diff --git a/tests/DrawBitmapRectTest.cpp b/tests/DrawBitmapRectTest.cpp
|
| index 6dca98b527207a086178b07199d6cd839e8c6dc8..720155ca0c01a2f4d11443ac7f81a20b8197ed63 100644
|
| --- a/tests/DrawBitmapRectTest.cpp
|
| +++ b/tests/DrawBitmapRectTest.cpp
|
| @@ -190,7 +190,9 @@ static void test_wacky_bitmapshader(skiatest::Reporter* reporter,
|
| c.concat(matrix);
|
|
|
| SkBitmap bm;
|
| - bm.allocN32Pixels(width, height);
|
| + if (bm.tryAllocN32Pixels(width, height)) {
|
| + // allow this to fail silently, to test the code downstream
|
| + }
|
| bm.eraseColor(SK_ColorRED);
|
|
|
| matrix.setAll(0.0078740157f,
|
|
|