diff options
Diffstat (limited to 'tests/PathOpsExtendedTest.cpp')
-rw-r--r-- | tests/PathOpsExtendedTest.cpp | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/tests/PathOpsExtendedTest.cpp b/tests/PathOpsExtendedTest.cpp index 9b27fce3e2..675918ffdf 100644 --- a/tests/PathOpsExtendedTest.cpp +++ b/tests/PathOpsExtendedTest.cpp @@ -43,12 +43,6 @@ static bool gComparePaths = true; static bool gComparePathsAssert = true; static bool gPathStrAssert = true; -#if FORCE_RELEASE -static bool gRunTestsInOneThread = true; -#else -static bool gRunTestsInOneThread = true; -#endif - static void showPathContour(SkPath::Iter& iter) { uint8_t verb; SkPoint pts[4]; @@ -522,14 +516,14 @@ bool testPathOp(skiatest::Reporter* reporter, const SkPath& a, const SkPath& b, const int maxThreadsAllocated = 64; static int maxThreads = 1; -int initializeTests(const char* test) { +int initializeTests(skiatest::Reporter* reporter, const char* test) { #ifdef SK_DEBUG gDebugMaxWindSum = 4; gDebugMaxWindValue = 4; #endif testName = test; size_t testNameSize = strlen(test); - if (!gRunTestsInOneThread) { + if (reporter->allowThreaded()) { int threads = -1; #ifdef SK_BUILD_FOR_MAC size_t size = sizeof(threads); |