fix a few pathops test bugs exposed on Mac and Linux
git-svn-id: http://skia.googlecode.com/svn/trunk@8601 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/tests/PathOpsExtendedTest.cpp b/tests/PathOpsExtendedTest.cpp
index cbf21b1..bc3dbe2 100644
--- a/tests/PathOpsExtendedTest.cpp
+++ b/tests/PathOpsExtendedTest.cpp
@@ -490,8 +490,6 @@
const int maxThreadsAllocated = 64;
static int maxThreads = 1;
-SK_DECLARE_STATIC_MUTEX(gQueueMutex);
-
int initializeTests(const char* test) {
#ifdef SK_DEBUG
gDebugMaxWindSum = 4;
diff --git a/tests/PathOpsQuadReduceOrderTest.cpp b/tests/PathOpsQuadReduceOrderTest.cpp
index 8ee817b..64f2069 100644
--- a/tests/PathOpsQuadReduceOrderTest.cpp
+++ b/tests/PathOpsQuadReduceOrderTest.cpp
@@ -62,7 +62,7 @@
}
}
-void QuadReduceOrderTest(skiatest::Reporter* reporter) {
+static void QuadReduceOrderTest(skiatest::Reporter* reporter) {
oneOffTest(reporter);
standardTestCases(reporter);
}
diff --git a/tests/PathOpsSimplifyTest.cpp b/tests/PathOpsSimplifyTest.cpp
index c8537dc..0da8da2 100644
--- a/tests/PathOpsSimplifyTest.cpp
+++ b/tests/PathOpsSimplifyTest.cpp
@@ -3571,9 +3571,25 @@
}
#endif
+static void testQuadralateral2(skiatest::Reporter* reporter) {
+ SkPath path;
+ path.moveTo(0, 0);
+ path.lineTo(2, 2);
+ path.lineTo(0, 3);
+ path.lineTo(3, 3);
+ path.close();
+ path.moveTo(2, 0);
+ path.lineTo(3, 0);
+ path.lineTo(0, 1);
+ path.lineTo(1, 2);
+ path.close();
+ testSimplify(reporter, path);
+}
+
static void (*firstTest)(skiatest::Reporter* ) = 0;
static TestDesc tests[] = {
+ TEST(testQuadralateral2),
TEST(testQuad1), // FIXME: fails, need to investigate
TEST(testCubic2),
TEST(testCubic1),
diff --git a/tests/PathOpsThreadedCommon.h b/tests/PathOpsThreadedCommon.h
index 7f57a7b..410194f 100644
--- a/tests/PathOpsThreadedCommon.h
+++ b/tests/PathOpsThreadedCommon.h
@@ -15,7 +15,10 @@
#define PATH_STR_SIZE 512
class PathOpsThreadedRunnable;
-class skiatest::Reporter;
+
+namespace skiatest {
+class Reporter;
+}
struct PathOpsThreadState {
unsigned char fA;