Index: tests/PathOpsSkpClipTest.cpp |
diff --git a/tests/PathOpsSkpClipTest.cpp b/tests/PathOpsSkpClipTest.cpp |
index d413a08a666ef8e901fc19dcea043ee85e9448f4..cdc3c1fcd910d8e2c2062e078126cb9c84b80bab 100755 |
--- a/tests/PathOpsSkpClipTest.cpp |
+++ b/tests/PathOpsSkpClipTest.cpp |
@@ -482,8 +482,7 @@ void TestResult::testOne() { |
do { |
int dimX = SkScalarCeilToInt(width / fScale); |
int dimY = SkScalarCeilToInt(height / fScale); |
- if (oldBitmap.allocN32Pixels(dimX, dimY) && |
- opBitmap.allocN32Pixels(dimX, dimY)) { |
+ if (oldBitmap.tryAllocN32Pixels(dimX, dimY) && opBitmap.tryAllocN32Pixels(dimX, dimY)) { |
break; |
} |
SkDebugf("-%d-", fScale); |