| Index: tests/PathOpsThreadedCommon.h
|
| diff --git a/tests/PathOpsThreadedCommon.h b/tests/PathOpsThreadedCommon.h
|
| index ee9339065feb549af2950a511caa10bad9eb5705..a638cd2fdf593ae839ac09af324b6c0bb9dda121 100644
|
| --- a/tests/PathOpsThreadedCommon.h
|
| +++ b/tests/PathOpsThreadedCommon.h
|
| @@ -68,6 +68,15 @@ public:
|
| fTestFun = testFun;
|
| }
|
|
|
| + PathOpsThreadedRunnable(void (*testFun)(PathOpsThreadState*), int dirNo, const char* str,
|
| + PathOpsThreadedTestRunner* runner) {
|
| + SkASSERT(strlen(str) < sizeof(fState.fSerialNo) - 1);
|
| + fState.fA = dirNo;
|
| + strcpy(fState.fSerialNo, str);
|
| + fState.fReporter = runner->fReporter;
|
| + fTestFun = testFun;
|
| + }
|
| +
|
| virtual void run() SK_OVERRIDE {
|
| SkBitmap bitmap;
|
| fState.fBitmap = &bitmap;
|
|
|