Index: tests/PathOpsExtendedTest.cpp |
diff --git a/tests/PathOpsExtendedTest.cpp b/tests/PathOpsExtendedTest.cpp |
index 73a23872f890ad7cd142e6caca20f6a32f264552..d808ed7ec46273153b7dcb1af040be3d9922a33f 100644 |
--- a/tests/PathOpsExtendedTest.cpp |
+++ b/tests/PathOpsExtendedTest.cpp |
@@ -322,23 +322,16 @@ |
SK_DECLARE_STATIC_MUTEX(compareDebugOut4); |
static int comparePaths(skiatest::Reporter* reporter, const char* testName, const SkPath& one, |
const SkPath& scaledOne, const SkPath& two, const SkPath& scaledTwo, SkBitmap& bitmap, |
- const SkPath& a, const SkPath& b, const SkPathOp shapeOp, const SkMatrix& scale, |
- bool expectSuccess) { |
+ const SkPath& a, const SkPath& b, const SkPathOp shapeOp, const SkMatrix& scale) { |
int errors2x2; |
- const int MAX_ERRORS = 8; |
(void) pathsDrawTheSame(bitmap, scaledOne, scaledTwo, errors2x2); |
- if (!expectSuccess) { |
- if (errors2x2 <= MAX_ERRORS) { |
- REPORTER_ASSERT(reporter, 0); |
- } |
- return 0; |
- } |
if (errors2x2 == 0) { |
if (gShowPath) { |
showPathOpPath(testName, one, two, a, b, scaledOne, scaledTwo, shapeOp, scale); |
} |
return 0; |
} |
+ const int MAX_ERRORS = 8; |
if (errors2x2 > MAX_ERRORS && gComparePathsAssert) { |
SkAutoMutexAcquire autoM(compareDebugOut3); |
SkDebugf("\n*** this test fails ***\n"); |
@@ -479,7 +472,7 @@ |
#endif |
static bool innerPathOp(skiatest::Reporter* reporter, const SkPath& a, const SkPath& b, |
- const SkPathOp shapeOp, const char* testName, bool threaded, bool expectSuccess) { |
+ const SkPathOp shapeOp, const char* testName, bool threaded) { |
#if DEBUG_SHOW_TEST_NAME |
showName(a, b, shapeOp); |
#endif |
@@ -517,7 +510,7 @@ |
scaledOut.addPath(out, scale); |
scaledOut.setFillType(out.getFillType()); |
int result = comparePaths(reporter, testName, pathOut, scaledPathOut, out, scaledOut, bitmap, |
- a, b, shapeOp, scale, expectSuccess); |
+ a, b, shapeOp, scale); |
if (result && gPathStrAssert) { |
REPORTER_ASSERT(reporter, 0); |
} |
@@ -526,13 +519,8 @@ |
} |
bool testPathOp(skiatest::Reporter* reporter, const SkPath& a, const SkPath& b, |
- const SkPathOp shapeOp, const char* testName) { |
- return innerPathOp(reporter, a, b, shapeOp, testName, false, true); |
-} |
- |
-bool testPathOpCheck(skiatest::Reporter* reporter, const SkPath& a, const SkPath& b, |
- const SkPathOp shapeOp, const char* testName, bool checkFail) { |
- return innerPathOp(reporter, a, b, shapeOp, testName, false, checkFail); |
+ const SkPathOp shapeOp, const char* testName) { |
+ return innerPathOp(reporter, a, b, shapeOp, testName, false); |
} |
bool testPathFailOp(skiatest::Reporter* reporter, const SkPath& a, const SkPath& b, |
@@ -551,7 +539,7 @@ |
bool testThreadedPathOp(skiatest::Reporter* reporter, const SkPath& a, const SkPath& b, |
const SkPathOp shapeOp, const char* testName) { |
- return innerPathOp(reporter, a, b, shapeOp, testName, true, true); |
+ return innerPathOp(reporter, a, b, shapeOp, testName, true); |
} |
SK_DECLARE_STATIC_MUTEX(gMutex); |