| 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. " |
| 25 "For DM, this means no scaling or subsetting, al
ways using the " |
| 26 "canvas color type. " |
| 27 "For nanobench, this means always N32, Premul or
Opaque."); |
| 28 |
| 24 DEFINE_string2(match, m, nullptr, | 29 DEFINE_string2(match, m, nullptr, |
| 25 "[~][^]substring[$] [...] of GM name to run.\n" | 30 "[~][^]substring[$] [...] of GM name to run.\n" |
| 26 "Multiple matches may be separated by spaces.\n" | 31 "Multiple matches may be separated by spaces.\n" |
| 27 "~ causes a matching GM to always be skipped\n" | 32 "~ causes a matching GM to always be skipped\n" |
| 28 "^ requires the start of the GM to match\n" | 33 "^ requires the start of the GM to match\n" |
| 29 "$ requires the end of the GM to match\n" | 34 "$ requires the end of the GM to match\n" |
| 30 "^ and $ requires an exact match\n" | 35 "^ and $ requires an exact match\n" |
| 31 "If a GM does not match any list entry,\n" | 36 "If a GM does not match any list entry,\n" |
| 32 "it is skipped unless some list entry starts with ~"); | 37 "it is skipped unless some list entry starts with ~"); |
| 33 | 38 |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 SkDebugf("No supported images found in %s!\n", flag); | 97 SkDebugf("No supported images found in %s!\n", flag); |
| 93 return false; | 98 return false; |
| 94 } | 99 } |
| 95 } else { | 100 } else { |
| 96 // Also add the value if it is a single image | 101 // Also add the value if it is a single image |
| 97 output->push_back() = flag; | 102 output->push_back() = flag; |
| 98 } | 103 } |
| 99 } | 104 } |
| 100 return true; | 105 return true; |
| 101 } | 106 } |
| OLD | NEW |