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