EdgeWalker_Test.h revision 78e17130f396d8b2157116c2504e357192f87ed1
1 2 3#include "ShapeOps.h" 4#include "SkBitmap.h" 5#include <pthread.h> 6 7class SkCanvas; 8 9//extern int comparePaths(const SkPath& one, const SkPath& two); 10extern void comparePathsTiny(const SkPath& one, const SkPath& two); 11extern bool drawAsciiPaths(const SkPath& one, const SkPath& two, 12 bool drawPaths); 13extern void showPath(const SkPath& path, const char* str = NULL); 14extern bool testSimplify(const SkPath& path, bool fill, SkPath& out, 15 SkBitmap& bitmap, SkCanvas* canvas = 0); 16 17struct State4 { 18 State4(); 19 20 int a; 21 int b; 22 int c; 23 int d; 24 pthread_t threadID; 25 SkCanvas* canvas; 26 SkBitmap bitmap; 27 bool abcIsATriangle; 28}; 29 30void createThread(State4* statePtr, void* (*test)(void* )); 31void waitForCompletion(State4 threadState[], int& threadIndex); 32