OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2012 Google Inc. | 2 * Copyright 2012 Google Inc. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 #ifndef PathOpsExtendedTest_DEFINED | 7 #ifndef PathOpsExtendedTest_DEFINED |
8 #define PathOpsExtendedTest_DEFINED | 8 #define PathOpsExtendedTest_DEFINED |
9 | 9 |
10 #include "SkBitmap.h" | 10 #include "SkBitmap.h" |
(...skipping 28 matching lines...) Expand all Loading... |
39 extern bool testPathOp(skiatest::Reporter* reporter, const SkPath& a, const SkPa
th& b, | 39 extern bool testPathOp(skiatest::Reporter* reporter, const SkPath& a, const SkPa
th& b, |
40 const SkPathOp , const char* testName); | 40 const SkPathOp , const char* testName); |
41 extern bool testPathOpCheck(skiatest::Reporter* reporter, const SkPath& a, const
SkPath& b, | 41 extern bool testPathOpCheck(skiatest::Reporter* reporter, const SkPath& a, const
SkPath& b, |
42 const SkPathOp , const char* testName, bool checkFai
l); | 42 const SkPathOp , const char* testName, bool checkFai
l); |
43 extern bool testPathOpFail(skiatest::Reporter* reporter, const SkPath& a, const
SkPath& b, | 43 extern bool testPathOpFail(skiatest::Reporter* reporter, const SkPath& a, const
SkPath& b, |
44 const SkPathOp, const char* testName); | 44 const SkPathOp, const char* testName); |
45 extern bool testPathOpFailCheck(skiatest::Reporter* reporter, const SkPath& a, c
onst SkPath& b, | 45 extern bool testPathOpFailCheck(skiatest::Reporter* reporter, const SkPath& a, c
onst SkPath& b, |
46 const SkPathOp , const char* testName); | 46 const SkPathOp , const char* testName); |
47 extern bool testPathOpFailSkipAssert(skiatest::Reporter* reporter, const SkPath&
a, const SkPath& b, | 47 extern bool testPathOpFailSkipAssert(skiatest::Reporter* reporter, const SkPath&
a, const SkPath& b, |
48 const SkPathOp , const char* testName); | 48 const SkPathOp , const char* testName); |
| 49 extern bool testPathOpFlakySkipAssert(skiatest::Reporter* reporter, const SkPath
& a, |
| 50 const SkPath& b, const SkPathOp , const ch
ar* testName); |
49 extern bool testPathOpSkipAssert(skiatest::Reporter* reporter, const SkPath& a,
const SkPath& b, | 51 extern bool testPathOpSkipAssert(skiatest::Reporter* reporter, const SkPath& a,
const SkPath& b, |
50 const SkPathOp , const char* testName); | 52 const SkPathOp , const char* testName); |
51 extern bool testSimplify(SkPath& path, bool useXor, SkPath& out, PathOpsThreadSt
ate& state, | 53 extern bool testSimplify(SkPath& path, bool useXor, SkPath& out, PathOpsThreadSt
ate& state, |
52 const char* pathStr); | 54 const char* pathStr); |
53 extern bool testSimplify(skiatest::Reporter* reporter, const SkPath& path, const
char* filename); | 55 extern bool testSimplify(skiatest::Reporter* reporter, const SkPath& path, const
char* filename); |
54 extern bool testSimplifyCheck(skiatest::Reporter* reporter, const SkPath& path, | 56 extern bool testSimplifyCheck(skiatest::Reporter* reporter, const SkPath& path, |
55 const char* filename, bool checkFail); | 57 const char* filename, bool checkFail); |
56 extern bool testSimplifyFailSkipAssert(skiatest::Reporter* reporter, const SkPat
h& path, | 58 extern bool testSimplifyFailSkipAssert(skiatest::Reporter* reporter, const SkPat
h& path, |
57 const char* filename); | 59 const char* filename); |
58 extern bool testSimplifySkipAssert(skiatest::Reporter* reporter, const SkPath& p
ath, | 60 extern bool testSimplifySkipAssert(skiatest::Reporter* reporter, const SkPath& p
ath, |
59 const char* filename); | 61 const char* filename); |
60 | 62 |
61 void initializeTests(skiatest::Reporter* reporter, const char* testName); | 63 void initializeTests(skiatest::Reporter* reporter, const char* testName); |
62 void outputProgress(char* ramStr, const char* pathStr, SkPath::FillType ); | 64 void outputProgress(char* ramStr, const char* pathStr, SkPath::FillType ); |
63 void outputProgress(char* ramStr, const char* pathStr, SkPathOp op); | 65 void outputProgress(char* ramStr, const char* pathStr, SkPathOp op); |
64 | 66 |
65 void RunTestSet(skiatest::Reporter* reporter, TestDesc tests[], size_t count, | 67 void RunTestSet(skiatest::Reporter* reporter, TestDesc tests[], size_t count, |
66 void (*firstTest)(skiatest::Reporter* , const char* filename), | 68 void (*firstTest)(skiatest::Reporter* , const char* filename), |
67 void (*skipTest)(skiatest::Reporter* , const char* filename), | 69 void (*skipTest)(skiatest::Reporter* , const char* filename), |
68 void (*stopTest)(skiatest::Reporter* , const char* filename), bo
ol reverse); | 70 void (*stopTest)(skiatest::Reporter* , const char* filename), bo
ol reverse); |
69 void ShowTestName(PathOpsThreadState* data, int a, int b, int c, int d); | 71 void ShowTestName(PathOpsThreadState* data, int a, int b, int c, int d); |
70 void ShowFunctionHeader(const char* name); | 72 void ShowFunctionHeader(const char* name); |
71 void ShowPath(const SkPath& path, const char* pathName); | 73 void ShowPath(const SkPath& path, const char* pathName); |
72 void ShowOp(SkPathOp op, const char* pathOne, const char* pathTwo); | 74 void ShowOp(SkPathOp op, const char* pathOne, const char* pathTwo); |
73 | 75 |
74 #endif | 76 #endif |
OLD | NEW |