blob: e8215a369f24402fee79da69c320b212d3fde8d4 [file] [log] [blame]
caryclark@google.comcd4421d2012-03-01 19:16:31 +00001
2
caryclark@google.comd88e0892012-03-27 13:23:51 +00003#include "ShapeOps.h"
caryclark@google.com78e17132012-04-17 11:40:34 +00004#include "SkBitmap.h"
5#include <pthread.h>
caryclark@google.comcd4421d2012-03-01 19:16:31 +00006
caryclark@google.com198e0542012-03-30 18:47:02 +00007class SkCanvas;
8
9//extern int comparePaths(const SkPath& one, const SkPath& two);
caryclark@google.com1577e8f2012-05-22 17:01:14 +000010extern int comparePaths(const SkPath& one, const SkPath& two, SkBitmap& bitmap,
11 SkCanvas* canvas);
caryclark@google.comcd4421d2012-03-01 19:16:31 +000012extern void comparePathsTiny(const SkPath& one, const SkPath& two);
caryclark@google.com752b60e2012-03-22 21:11:17 +000013extern bool drawAsciiPaths(const SkPath& one, const SkPath& two,
caryclark@google.com2e7f4c82012-03-20 21:11:59 +000014 bool drawPaths);
caryclark@google.com2e7f4c82012-03-20 21:11:59 +000015extern void showPath(const SkPath& path, const char* str = NULL);
caryclark@google.com198e0542012-03-30 18:47:02 +000016extern bool testSimplify(const SkPath& path, bool fill, SkPath& out,
17 SkBitmap& bitmap, SkCanvas* canvas = 0);
caryclark@google.com78e17132012-04-17 11:40:34 +000018
19struct 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
32void createThread(State4* statePtr, void* (*test)(void* ));
33void waitForCompletion(State4 threadState[], int& threadIndex);