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/PathOpsSimplifyTrianglesThreadedTest.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/PathOpsSimplifyTrianglesThreadedTest.cpp')
-rwxr-xr-x | tests/PathOpsSimplifyTrianglesThreadedTest.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/PathOpsSimplifyTrianglesThreadedTest.cpp b/tests/PathOpsSimplifyTrianglesThreadedTest.cpp index 42aad38a48..8d1e8db596 100755 --- a/tests/PathOpsSimplifyTrianglesThreadedTest.cpp +++ b/tests/PathOpsSimplifyTrianglesThreadedTest.cpp @@ -66,7 +66,7 @@ static void testSimplifyTrianglesMain(PathOpsThreadState* data) { } static void PathOpsSimplifyTrianglesThreadedTest(skiatest::Reporter* reporter) { - int threadCount = initializeTests("testTriangles"); + int threadCount = initializeTests(reporter, "testTriangles"); PathOpsThreadedTestRunner testRunner(reporter, threadCount); for (int a = 0; a < 15; ++a) { int ax = a & 0x03; |