aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/PathOpsThreadedCommon.h
diff options
context:
space:
mode:
Diffstat (limited to 'tests/PathOpsThreadedCommon.h')
-rw-r--r--tests/PathOpsThreadedCommon.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/tests/PathOpsThreadedCommon.h b/tests/PathOpsThreadedCommon.h
index 833f24fe5d..e6d3bed725 100644
--- a/tests/PathOpsThreadedCommon.h
+++ b/tests/PathOpsThreadedCommon.h
@@ -25,7 +25,7 @@ struct PathOpsThreadState {
unsigned char fD;
char* fPathStr;
const char* fKey;
- char fSerialNo[9];
+ char fSerialNo[64];
skiatest::Reporter* fReporter;
SkBitmap* fBitmap;
};
@@ -59,6 +59,14 @@ public:
fTestFun = testFun;
}
+ PathOpsThreadedRunnable(void (*testFun)(PathOpsThreadState*), const char* str,
+ PathOpsThreadedTestRunner* runner) {
+ SkASSERT(strlen(str) < sizeof(fState.fSerialNo) - 1);
+ strcpy(fState.fSerialNo, str);
+ fState.fReporter = runner->fReporter;
+ fTestFun = testFun;
+ }
+
virtual void run() SK_OVERRIDE {
SkBitmap bitmap;
fState.fBitmap = &bitmap;