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(forceSRGB, false, "Force SRGB for imageinfos"); | |
17 | |
18 DEFINE_bool(gpu, true, "master switch for running GPU-bound work."); | 16 DEFINE_bool(gpu, true, "master switch for running GPU-bound work."); |
19 | 17 |
20 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" |
21 " is treated as a fatal error."); | 19 " is treated as a fatal error."); |
22 | 20 |
23 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. " |
24 "A directory with no images is treated as a fatal
error."); | 22 "A directory with no images is treated as a fatal
error."); |
25 | 23 |
26 DEFINE_string2(match, m, nullptr, | 24 DEFINE_string2(match, m, nullptr, |
27 "[~][^]substring[$] [...] of GM name to run.\n" | 25 "[~][^]substring[$] [...] of GM name to run.\n" |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 SkDebugf("No supported images found in %s!\n", flag); | 92 SkDebugf("No supported images found in %s!\n", flag); |
95 return false; | 93 return false; |
96 } | 94 } |
97 } else { | 95 } else { |
98 // Also add the value if it is a single image | 96 // Also add the value if it is a single image |
99 output->push_back() = flag; | 97 output->push_back() = flag; |
100 } | 98 } |
101 } | 99 } |
102 return true; | 100 return true; |
103 } | 101 } |
OLD | NEW |