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