2012-03-01 19:16:31 +00:00
|
|
|
|
|
|
|
|
2012-03-27 13:23:51 +00:00
|
|
|
#include "ShapeOps.h"
|
2012-04-17 11:40:34 +00:00
|
|
|
#include "SkBitmap.h"
|
|
|
|
#include <pthread.h>
|
2012-03-01 19:16:31 +00:00
|
|
|
|
2012-03-30 18:47:02 +00:00
|
|
|
class SkCanvas;
|
|
|
|
|
|
|
|
//extern int comparePaths(const SkPath& one, const SkPath& two);
|
2012-05-22 17:01:14 +00:00
|
|
|
extern int comparePaths(const SkPath& one, const SkPath& two, SkBitmap& bitmap,
|
|
|
|
SkCanvas* canvas);
|
2012-03-01 19:16:31 +00:00
|
|
|
extern void comparePathsTiny(const SkPath& one, const SkPath& two);
|
2012-03-22 21:11:17 +00:00
|
|
|
extern bool drawAsciiPaths(const SkPath& one, const SkPath& two,
|
2012-03-20 21:11:59 +00:00
|
|
|
bool drawPaths);
|
|
|
|
extern void showPath(const SkPath& path, const char* str = NULL);
|
2012-03-30 18:47:02 +00:00
|
|
|
extern bool testSimplify(const SkPath& path, bool fill, SkPath& out,
|
|
|
|
SkBitmap& bitmap, SkCanvas* canvas = 0);
|
2012-04-17 11:40:34 +00:00
|
|
|
|
|
|
|
struct State4 {
|
|
|
|
State4();
|
|
|
|
|
|
|
|
int a;
|
|
|
|
int b;
|
|
|
|
int c;
|
|
|
|
int d;
|
|
|
|
pthread_t threadID;
|
|
|
|
SkCanvas* canvas;
|
|
|
|
SkBitmap bitmap;
|
|
|
|
bool abcIsATriangle;
|
|
|
|
};
|
|
|
|
|
|
|
|
void createThread(State4* statePtr, void* (*test)(void* ));
|
|
|
|
void waitForCompletion(State4 threadState[], int& threadIndex);
|