diff options
author | caryclark@google.com <caryclark@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-04-18 18:47:37 +0000 |
---|---|---|
committer | caryclark@google.com <caryclark@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-04-18 18:47:37 +0000 |
commit | 16cfe40276bfb0a4d98c9ad995b8e5b134a49b19 (patch) | |
tree | 5cd7dcd8e011fcda54c746ac313c4d89db134f75 /tests/PathOpsSimplifyRectThreadedTest.cpp | |
parent | 9d1cff124c14e550889a5755ffa5e6537af7c8c8 (diff) |
allow tests to optionally use multiple threads
modify threaded path ops tests to check
Background: this CL came out of a conversation with Eric where I learned that 10s of machines host 100s of bots. Since the bot hosting tests may be shared with many other tasks, it seems unwise for path ops to launch multiple test threads.
The change here is to make launching multiple threads "opt-in" and by default, bots can run path ops in a single thread.
Review URL: https://codereview.chromium.org/14002007
git-svn-id: http://skia.googlecode.com/svn/trunk@8750 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'tests/PathOpsSimplifyRectThreadedTest.cpp')
-rw-r--r-- | tests/PathOpsSimplifyRectThreadedTest.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/PathOpsSimplifyRectThreadedTest.cpp b/tests/PathOpsSimplifyRectThreadedTest.cpp index 33863cfe57..66b70d3142 100644 --- a/tests/PathOpsSimplifyRectThreadedTest.cpp +++ b/tests/PathOpsSimplifyRectThreadedTest.cpp @@ -173,7 +173,7 @@ static void testSimplify4x4RectsMain(PathOpsThreadState* data) static void PathOpsSimplifyRectsThreadedTest(skiatest::Reporter* reporter) { - int threadCount = initializeTests("testLine"); + int threadCount = initializeTests(reporter, "testLine"); PathOpsThreadedTestRunner testRunner(reporter, threadCount); for (int a = 0; a < 8; ++a) { // outermost for (int b = a ; b < 8; ++b) { |