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 24 matching lines...) Expand all Loading... |
35 } | 35 } |
36 | 36 |
37 extern bool drawAsciiPaths(const SkPath& one, const SkPath& two, bool drawPaths)
; | 37 extern bool drawAsciiPaths(const SkPath& one, const SkPath& two, bool drawPaths)
; |
38 extern void showOp(const SkPathOp op); | 38 extern void showOp(const SkPathOp op); |
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 testPathOpFuzz(skiatest::Reporter* reporter, const SkPath& a, |
46 const SkPathOp , const char* testName); | 46 const SkPath& b, const SkPathOp , const char* testNam
e); |
47 extern bool testPathOpFailSkipAssert(skiatest::Reporter* reporter, const SkPath&
a, const SkPath& b, | |
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); | |
51 extern bool testPathOpSkipAssert(skiatest::Reporter* reporter, const SkPath& a,
const SkPath& b, | |
52 const SkPathOp , const char* testName); | |
53 extern bool testSimplify(SkPath& path, bool useXor, SkPath& out, PathOpsThreadSt
ate& state, | 47 extern bool testSimplify(SkPath& path, bool useXor, SkPath& out, PathOpsThreadSt
ate& state, |
54 const char* pathStr); | 48 const char* pathStr); |
55 extern bool testSimplify(skiatest::Reporter* reporter, const SkPath& path, const
char* filename); | 49 extern bool testSimplify(skiatest::Reporter* reporter, const SkPath& path, const
char* filename); |
56 extern bool testSimplifyCheck(skiatest::Reporter* reporter, const SkPath& path, | 50 extern bool testSimplifyCheck(skiatest::Reporter* reporter, const SkPath& path, |
57 const char* filename, bool checkFail); | 51 const char* filename, bool checkFail); |
58 extern bool testSimplifyFailSkipAssert(skiatest::Reporter* reporter, const SkPat
h& path, | 52 extern bool testSimplifyFuzz(skiatest::Reporter* reporter, const SkPath& path, |
59 const char* filename); | 53 const char* filename); |
60 extern bool testSimplifySkipAssert(skiatest::Reporter* reporter, const SkPath& p
ath, | |
61 const char* filename); | |
62 | 54 |
63 void initializeTests(skiatest::Reporter* reporter, const char* testName); | 55 void initializeTests(skiatest::Reporter* reporter, const char* testName); |
64 void outputProgress(char* ramStr, const char* pathStr, SkPath::FillType ); | 56 void outputProgress(char* ramStr, const char* pathStr, SkPath::FillType ); |
65 void outputProgress(char* ramStr, const char* pathStr, SkPathOp op); | 57 void outputProgress(char* ramStr, const char* pathStr, SkPathOp op); |
66 | 58 |
67 void RunTestSet(skiatest::Reporter* reporter, TestDesc tests[], size_t count, | 59 void RunTestSet(skiatest::Reporter* reporter, TestDesc tests[], size_t count, |
68 void (*firstTest)(skiatest::Reporter* , const char* filename), | 60 void (*firstTest)(skiatest::Reporter* , const char* filename), |
69 void (*skipTest)(skiatest::Reporter* , const char* filename), | 61 void (*skipTest)(skiatest::Reporter* , const char* filename), |
70 void (*stopTest)(skiatest::Reporter* , const char* filename), bo
ol reverse); | 62 void (*stopTest)(skiatest::Reporter* , const char* filename), bo
ol reverse); |
71 void ShowTestName(PathOpsThreadState* data, int a, int b, int c, int d); | 63 void ShowTestName(PathOpsThreadState* data, int a, int b, int c, int d); |
72 void ShowFunctionHeader(const char* name); | 64 void ShowFunctionHeader(const char* name); |
73 void ShowPath(const SkPath& path, const char* pathName); | 65 void ShowPath(const SkPath& path, const char* pathName); |
74 void ShowOp(SkPathOp op, const char* pathOne, const char* pathTwo); | 66 void ShowOp(SkPathOp op, const char* pathOne, const char* pathTwo); |
75 | 67 |
76 #endif | 68 #endif |
OLD | NEW |