diff options
author | mtklein <mtklein@chromium.org> | 2014-10-06 11:24:08 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-10-06 11:24:08 -0700 |
commit | e356c7f0eeb513d0b8cf7bf7f1f47ba4e997861e (patch) | |
tree | 35a1c79fdd6b5305f65d560a6ce6db41a4d66489 /tools | |
parent | 8e47478333bb77d3ba273432fcfe089a2a1384be (diff) |
Restore a really single-threaded mode to DM.
Used to be:
0 -> run on main thread plus an autodetected number of extra threads (default)
N -> run on main thread plus N extra threads
Now it's:
-1 -> run on main thread plus an autodetected number of extra threads (default)
0 -> run on main thread
N -> run on main thread plus N extra threads
BUG=skia:
Review URL: https://codereview.chromium.org/636593002
Diffstat (limited to 'tools')
-rw-r--r-- | tools/flags/SkCommonFlags.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/flags/SkCommonFlags.cpp b/tools/flags/SkCommonFlags.cpp index c8cd330f59..99d05c15f7 100644 --- a/tools/flags/SkCommonFlags.cpp +++ b/tools/flags/SkCommonFlags.cpp @@ -43,8 +43,8 @@ DEFINE_bool(abandonGpuContext, false, "Abandon the GrContext after running each DEFINE_string(skps, "skps", "Directory to read skps from."); -DEFINE_int32(threads, 0, "Run threadsafe tests on a threadpool with this many threads, " - "defaulting to one thread per core."); +DEFINE_int32(threads, -1, "Run threadsafe tests on a threadpool with this many extra threads, " + "defaulting to one extra thread per core."); DEFINE_bool2(verbose, v, false, "enable verbose output from the test driver."); |