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 12 matching lines...) Expand all Loading... |
23 struct TestDesc { | 23 struct TestDesc { |
24 void (*fun)(skiatest::Reporter*, const char* filename); | 24 void (*fun)(skiatest::Reporter*, const char* filename); |
25 const char* str; | 25 const char* str; |
26 }; | 26 }; |
27 | 27 |
28 //extern int comparePaths(const SkPath& one, const SkPath& two); | 28 //extern int comparePaths(const SkPath& one, const SkPath& two); |
29 extern int comparePaths(const SkPath& one, const SkPath& two, SkBitmap& bitmap); | 29 extern int comparePaths(const SkPath& one, const SkPath& two, SkBitmap& bitmap); |
30 extern bool drawAsciiPaths(const SkPath& one, const SkPath& two, bool drawPaths)
; | 30 extern bool drawAsciiPaths(const SkPath& one, const SkPath& two, bool drawPaths)
; |
31 extern void showOp(const SkPathOp op); | 31 extern void showOp(const SkPathOp op); |
32 extern bool testPathOp(skiatest::Reporter* reporter, const SkPath& a, const SkPa
th& b, | 32 extern bool testPathOp(skiatest::Reporter* reporter, const SkPath& a, const SkPa
th& b, |
33 const SkPathOp , const char* testName); | 33 const SkPathOp , const char* testName); |
| 34 extern bool testPathOpCheck(skiatest::Reporter* reporter, const SkPath& a, const
SkPath& b, |
| 35 const SkPathOp , const char* testName, bool checkFai
l); |
34 extern bool testPathFailOp(skiatest::Reporter* reporter, const SkPath& a, const
SkPath& b, | 36 extern bool testPathFailOp(skiatest::Reporter* reporter, const SkPath& a, const
SkPath& b, |
35 const SkPathOp , const char* testName); | 37 const SkPathOp , const char* testName); |
36 extern bool testThreadedPathOp(skiatest::Reporter* reporter, const SkPath& a, co
nst SkPath& b, | 38 extern bool testThreadedPathOp(skiatest::Reporter* reporter, const SkPath& a, co
nst SkPath& b, |
37 const SkPathOp , const char* testName); | 39 const SkPathOp , const char* testName); |
38 extern bool testSimplify(SkPath& path, bool useXor, SkPath& out, PathOpsThreadSt
ate& state, | 40 extern bool testSimplify(SkPath& path, bool useXor, SkPath& out, PathOpsThreadSt
ate& state, |
39 const char* pathStr); | 41 const char* pathStr); |
40 extern bool testSimplify(skiatest::Reporter* reporter, const SkPath& path, const
char* filename); | 42 extern bool testSimplify(skiatest::Reporter* reporter, const SkPath& path, const
char* filename); |
41 | 43 |
42 void initializeTests(skiatest::Reporter* reporter, const char* testName); | 44 void initializeTests(skiatest::Reporter* reporter, const char* testName); |
43 void outputProgress(char* ramStr, const char* pathStr, SkPath::FillType ); | 45 void outputProgress(char* ramStr, const char* pathStr, SkPath::FillType ); |
44 void outputProgress(char* ramStr, const char* pathStr, SkPathOp op); | 46 void outputProgress(char* ramStr, const char* pathStr, SkPathOp op); |
45 | 47 |
46 void RunTestSet(skiatest::Reporter* reporter, TestDesc tests[], size_t count, | 48 void RunTestSet(skiatest::Reporter* reporter, TestDesc tests[], size_t count, |
47 void (*firstTest)(skiatest::Reporter* , const char* filename), | 49 void (*firstTest)(skiatest::Reporter* , const char* filename), |
48 void (*stopTest)(skiatest::Reporter* , const char* filename), bo
ol reverse); | 50 void (*stopTest)(skiatest::Reporter* , const char* filename), bo
ol reverse); |
49 void ShowTestArray(); | 51 void ShowTestArray(); |
50 void ShowTestName(PathOpsThreadState* data, int a, int b, int c, int d); | 52 void ShowTestName(PathOpsThreadState* data, int a, int b, int c, int d); |
51 void ShowFunctionHeader(const char* name); | 53 void ShowFunctionHeader(const char* name); |
52 void ShowPath(const SkPath& path, const char* pathName); | 54 void ShowPath(const SkPath& path, const char* pathName); |
53 void ShowOp(SkPathOp op, const char* pathOne, const char* pathTwo); | 55 void ShowOp(SkPathOp op, const char* pathOne, const char* pathTwo); |
54 | 56 |
55 #endif | 57 #endif |
OLD | NEW |