| Index: tests/PathOpsSkpClipTest.cpp
|
| diff --git a/tests/PathOpsSkpClipTest.cpp b/tests/PathOpsSkpClipTest.cpp
|
| index e0f5e18f679b174a9bfd9008e64d0e591049dd88..d80224f1290b8fa9ea503abad0826dd625c5a584 100755
|
| --- a/tests/PathOpsSkpClipTest.cpp
|
| +++ b/tests/PathOpsSkpClipTest.cpp
|
| @@ -403,10 +403,8 @@ void TestResult::testOne() {
|
| do {
|
| int dimX = (width + scale - 1) / scale;
|
| int dimY = (height + scale - 1) / scale;
|
| - oldBitmap.setConfig(SkBitmap::kARGB_8888_Config, dimX, dimY);
|
| - opBitmap.setConfig(SkBitmap::kARGB_8888_Config, dimX, dimY);
|
| - bool success = oldBitmap.allocPixels() && opBitmap.allocPixels();
|
| - if (success) {
|
| + if (oldBitmap.allocN32Pixels(dimX, dimY) &&
|
| + opBitmap.allocN32Pixels(dimX, dimY)) {
|
| break;
|
| }
|
| SkDebugf("-%d-", scale);
|
|
|