From e356c7f0eeb513d0b8cf7bf7f1f47ba4e997861e Mon Sep 17 00:00:00 2001 From: mtklein Date: Mon, 6 Oct 2014 11:24:08 -0700 Subject: 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 --- tools/flags/SkCommonFlags.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tools') 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."); -- cgit v1.2.3