| 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 18 matching lines...) Expand all Loading... |
| 29 extern bool testPathOp(skiatest::Reporter* reporter, const SkPath& a, const SkPa
th& b, | 29 extern bool testPathOp(skiatest::Reporter* reporter, const SkPath& a, const SkPa
th& b, |
| 30 const SkPathOp , const char* testName); | 30 const SkPathOp , const char* testName); |
| 31 extern bool testPathFailOp(skiatest::Reporter* reporter, const SkPath& a, const
SkPath& b, | 31 extern bool testPathFailOp(skiatest::Reporter* reporter, const SkPath& a, const
SkPath& b, |
| 32 const SkPathOp , const char* testName); | 32 const SkPathOp , const char* testName); |
| 33 extern bool testThreadedPathOp(skiatest::Reporter* reporter, const SkPath& a, co
nst SkPath& b, | 33 extern bool testThreadedPathOp(skiatest::Reporter* reporter, const SkPath& a, co
nst SkPath& b, |
| 34 const SkPathOp , const char* testName); | 34 const SkPathOp , const char* testName); |
| 35 extern bool testSimplify(SkPath& path, bool useXor, SkPath& out, PathOpsThreadSt
ate& state, | 35 extern bool testSimplify(SkPath& path, bool useXor, SkPath& out, PathOpsThreadSt
ate& state, |
| 36 const char* pathStr); | 36 const char* pathStr); |
| 37 extern bool testSimplify(skiatest::Reporter* reporter, const SkPath& path, const
char* filename); | 37 extern bool testSimplify(skiatest::Reporter* reporter, const SkPath& path, const
char* filename); |
| 38 | 38 |
| 39 void initializeTests(skiatest::Reporter* reporter, const char* testName); | 39 int initializeTests(skiatest::Reporter* reporter, const char* testName); |
| 40 void outputProgress(char* ramStr, const char* pathStr, SkPath::FillType ); | 40 void outputProgress(char* ramStr, const char* pathStr, SkPath::FillType ); |
| 41 void outputProgress(char* ramStr, const char* pathStr, SkPathOp op); | 41 void outputProgress(char* ramStr, const char* pathStr, SkPathOp op); |
| 42 | 42 |
| 43 void RunTestSet(skiatest::Reporter* reporter, TestDesc tests[], size_t count, | 43 void RunTestSet(skiatest::Reporter* reporter, TestDesc tests[], size_t count, |
| 44 void (*firstTest)(skiatest::Reporter* , const char* filename), | 44 void (*firstTest)(skiatest::Reporter* , const char* filename), |
| 45 void (*stopTest)(skiatest::Reporter* , const char* filename), bo
ol reverse); | 45 void (*stopTest)(skiatest::Reporter* , const char* filename), bo
ol reverse); |
| 46 void ShowTestArray(); | 46 void ShowTestArray(); |
| 47 void ShowTestName(PathOpsThreadState* data, int a, int b, int c, int d); | 47 void ShowTestName(PathOpsThreadState* data, int a, int b, int c, int d); |
| 48 void ShowFunctionHeader(const char* name); | 48 void ShowFunctionHeader(const char* name); |
| 49 void ShowPath(const SkPath& path, const char* pathName); | 49 void ShowPath(const SkPath& path, const char* pathName); |
| 50 void ShowOp(SkPathOp op, const char* pathOne, const char* pathTwo); | 50 void ShowOp(SkPathOp op, const char* pathOne, const char* pathTwo); |
| 51 | 51 |
| 52 #endif | 52 #endif |
| OLD | NEW |