Chromium Code Reviews| 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 "SkOSFile.h" | 9 #include "SkOSFile.h" |
| 10 | 10 |
| 11 DEFINE_bool(cpu, true, "master switch for running CPU-bound work."); | 11 DEFINE_bool(cpu, true, "master switch for running CPU-bound work."); |
| 12 | 12 |
| 13 DEFINE_bool(dryRun, false, | 13 DEFINE_bool(dryRun, false, |
| 14 "just print the tests that would be run, without actually running th em."); | 14 "just print the tests that would be run, without actually running th em."); |
| 15 | 15 |
| 16 DEFINE_bool(gpu, true, "master switch for running GPU-bound work."); | 16 DEFINE_bool(gpu, true, "master switch for running GPU-bound work."); |
| 17 | 17 |
| 18 DEFINE_string(images, "", "List of images and/or directories to decode. A direct ory with no images" | 18 DEFINE_string(images, "", "List of images and/or directories to decode. A direct ory with no images" |
| 19 " is treated as a fatal error."); | 19 " is treated as a fatal error."); |
| 20 | 20 |
| 21 DEFINE_string(colorImages, "", "List of images and/or directories to decode with color correction. " | 21 DEFINE_string(colorImages, "", "List of images and/or directories to decode with color correction. " |
| 22 "A directory with no images is treated as a fatal error."); | 22 "A directory with no images is treated as a fatal error."); |
| 23 | 23 |
| 24 DEFINE_bool(simpleCodec, false, "Runs of a subset of the codec tests."); | |
|
scroggo
2016/06/21 16:16:18
nit: might be nice to specify the subset.
msarett
2016/06/21 16:27:17
Done.
| |
| 25 | |
| 24 DEFINE_string2(match, m, nullptr, | 26 DEFINE_string2(match, m, nullptr, |
| 25 "[~][^]substring[$] [...] of GM name to run.\n" | 27 "[~][^]substring[$] [...] of GM name to run.\n" |
| 26 "Multiple matches may be separated by spaces.\n" | 28 "Multiple matches may be separated by spaces.\n" |
| 27 "~ causes a matching GM to always be skipped\n" | 29 "~ causes a matching GM to always be skipped\n" |
| 28 "^ requires the start of the GM to match\n" | 30 "^ requires the start of the GM to match\n" |
| 29 "$ requires the end of the GM to match\n" | 31 "$ requires the end of the GM to match\n" |
| 30 "^ and $ requires an exact match\n" | 32 "^ and $ requires an exact match\n" |
| 31 "If a GM does not match any list entry,\n" | 33 "If a GM does not match any list entry,\n" |
| 32 "it is skipped unless some list entry starts with ~"); | 34 "it is skipped unless some list entry starts with ~"); |
| 33 | 35 |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 92 SkDebugf("No supported images found in %s!\n", flag); | 94 SkDebugf("No supported images found in %s!\n", flag); |
| 93 return false; | 95 return false; |
| 94 } | 96 } |
| 95 } else { | 97 } else { |
| 96 // Also add the value if it is a single image | 98 // Also add the value if it is a single image |
| 97 output->push_back() = flag; | 99 output->push_back() = flag; |
| 98 } | 100 } |
| 99 } | 101 } |
| 100 return true; | 102 return true; |
| 101 } | 103 } |
| OLD | NEW |