OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2014 Google Inc. | 2 * Copyright 2014 Google Inc. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 | 7 |
8 #include "SkCommonFlags.h" | 8 #include "SkCommonFlags.h" |
| 9 #include "SkThreadPool.h" |
9 | 10 |
10 DEFINE_string(config, "565 8888 pdf gpu nonrendering angle", | 11 DEFINE_string(config, "565 8888 pdf gpu nonrendering angle", |
11 "Options: 565 8888 pdf gpu nonrendering msaa4 msaa16 nvprmsaa4 nvp
rmsaa16 " | 12 "Options: 565 8888 pdf gpu nonrendering msaa4 msaa16 nvprmsaa4 nvp
rmsaa16 " |
12 "gpunull gpudebug angle mesa"); | 13 "gpunull gpudebug angle mesa"); |
13 | 14 |
14 DEFINE_bool(cpu, true, "master switch for running CPU-bound work."); | 15 DEFINE_bool(cpu, true, "master switch for running CPU-bound work."); |
15 | 16 |
16 DEFINE_bool(dryRun, false, | 17 DEFINE_bool(dryRun, false, |
17 "just print the tests that would be run, without actually running th
em."); | 18 "just print the tests that would be run, without actually running th
em."); |
18 | 19 |
(...skipping 15 matching lines...) Expand all Loading... |
34 "^ and $ requires an exact match\n" | 35 "^ and $ requires an exact match\n" |
35 "If a GM does not match any list entry,\n" | 36 "If a GM does not match any list entry,\n" |
36 "it is skipped unless some list entry starts with ~"); | 37 "it is skipped unless some list entry starts with ~"); |
37 | 38 |
38 DEFINE_bool2(quiet, q, false, "if true, don't print status updates."); | 39 DEFINE_bool2(quiet, q, false, "if true, don't print status updates."); |
39 | 40 |
40 DEFINE_bool(resetGpuContext, true, "Reset the GrContext before running each test
."); | 41 DEFINE_bool(resetGpuContext, true, "Reset the GrContext before running each test
."); |
41 DEFINE_bool(abandonGpuContext, false, "Abandon the GrContext after running each
test. " | 42 DEFINE_bool(abandonGpuContext, false, "Abandon the GrContext after running each
test. " |
42 "Implies --resetGpuContext."); | 43 "Implies --resetGpuContext."); |
43 | 44 |
| 45 DEFINE_bool2(single, z, false, "run tests on a single thread internally."); |
| 46 |
44 DEFINE_string(skps, "skps", "Directory to read skps from."); | 47 DEFINE_string(skps, "skps", "Directory to read skps from."); |
45 | 48 |
46 DEFINE_int32(threads, 0, "Run threadsafe tests on a threadpool with this many th
reads, " | 49 DEFINE_int32(threads, SkThreadPool::kThreadPerCore, |
47 "defaulting to one thread per core."); | 50 "run threadsafe tests on a threadpool with this many threads."); |
48 | 51 |
49 DEFINE_bool2(verbose, v, false, "enable verbose output from the test driver."); | 52 DEFINE_bool2(verbose, v, false, "enable verbose output from the test driver."); |
50 | 53 |
51 DEFINE_bool2(veryVerbose, V, false, "tell individual tests to be verbose."); | 54 DEFINE_bool2(veryVerbose, V, false, "tell individual tests to be verbose."); |
52 | 55 |
53 DEFINE_string2(writePath, w, "", "If set, write bitmaps here as .pngs."); | 56 DEFINE_string2(writePath, w, "", "If set, write bitmaps here as .pngs."); |
OLD | NEW |