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
diff --git a/tools/flags/SkCommonFlags.cpp b/tools/flags/SkCommonFlags.cpp
index c8cd330..99d05c1 100644
--- a/tools/flags/SkCommonFlags.cpp
+++ b/tools/flags/SkCommonFlags.cpp
@@ -43,8 +43,8 @@
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.");