diff options
author | caryclark@google.com <caryclark@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-07-08 17:17:02 +0000 |
---|---|---|
committer | caryclark@google.com <caryclark@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-07-08 17:17:02 +0000 |
commit | 07e97fccd2d85076cd22ef411b0773ab92a18abe (patch) | |
tree | 0a764160f5eb642f4fe46c06df9fbffe0e9f8eda /tests/PathOpsThreadedCommon.h | |
parent | a95959c3fb4c502b45bc78f15b65cda1f21620e6 (diff) |
path ops work in progress
BUG=
Review URL: https://codereview.chromium.org/18058007
git-svn-id: http://skia.googlecode.com/svn/trunk@9908 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'tests/PathOpsThreadedCommon.h')
-rw-r--r-- | tests/PathOpsThreadedCommon.h | 10 |
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; |