caryclark@google.com | cd4421d | 2012-03-01 19:16:31 +0000 | [diff] [blame] | 1 | |
| 2 | |
caryclark@google.com | d88e089 | 2012-03-27 13:23:51 +0000 | [diff] [blame] | 3 | #include "ShapeOps.h" |
caryclark@google.com | 78e1713 | 2012-04-17 11:40:34 +0000 | [diff] [blame] | 4 | #include "SkBitmap.h" |
| 5 | #include <pthread.h> |
caryclark@google.com | cd4421d | 2012-03-01 19:16:31 +0000 | [diff] [blame] | 6 | |
caryclark@google.com | 198e054 | 2012-03-30 18:47:02 +0000 | [diff] [blame] | 7 | class SkCanvas; |
| 8 | |
| 9 | //extern int comparePaths(const SkPath& one, const SkPath& two); |
caryclark@google.com | 1577e8f | 2012-05-22 17:01:14 +0000 | [diff] [blame^] | 10 | extern int comparePaths(const SkPath& one, const SkPath& two, SkBitmap& bitmap, |
| 11 | SkCanvas* canvas); |
caryclark@google.com | cd4421d | 2012-03-01 19:16:31 +0000 | [diff] [blame] | 12 | extern void comparePathsTiny(const SkPath& one, const SkPath& two); |
caryclark@google.com | 752b60e | 2012-03-22 21:11:17 +0000 | [diff] [blame] | 13 | extern bool drawAsciiPaths(const SkPath& one, const SkPath& two, |
caryclark@google.com | 2e7f4c8 | 2012-03-20 21:11:59 +0000 | [diff] [blame] | 14 | bool drawPaths); |
caryclark@google.com | 2e7f4c8 | 2012-03-20 21:11:59 +0000 | [diff] [blame] | 15 | extern void showPath(const SkPath& path, const char* str = NULL); |
caryclark@google.com | 198e054 | 2012-03-30 18:47:02 +0000 | [diff] [blame] | 16 | extern bool testSimplify(const SkPath& path, bool fill, SkPath& out, |
| 17 | SkBitmap& bitmap, SkCanvas* canvas = 0); |
caryclark@google.com | 78e1713 | 2012-04-17 11:40:34 +0000 | [diff] [blame] | 18 | |
| 19 | struct State4 { |
| 20 | State4(); |
| 21 | |
| 22 | int a; |
| 23 | int b; |
| 24 | int c; |
| 25 | int d; |
| 26 | pthread_t threadID; |
| 27 | SkCanvas* canvas; |
| 28 | SkBitmap bitmap; |
| 29 | bool abcIsATriangle; |
| 30 | }; |
| 31 | |
| 32 | void createThread(State4* statePtr, void* (*test)(void* )); |
| 33 | void waitForCompletion(State4 threadState[], int& threadIndex); |