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 #ifndef SK_COMMON_FLAGS_H | 8 #ifndef SK_COMMON_FLAGS_H |
9 #define SK_COMMON_FLAGS_H | 9 #define SK_COMMON_FLAGS_H |
10 | 10 |
11 #include "../private/SkTArray.h" | 11 #include "../private/SkTArray.h" |
12 #include "SkCommandLineFlags.h" | 12 #include "SkCommandLineFlags.h" |
13 #include "SkString.h" | 13 #include "SkString.h" |
14 | 14 |
15 DECLARE_bool(cpu); | 15 DECLARE_bool(cpu); |
16 DECLARE_bool(dryRun); | 16 DECLARE_bool(dryRun); |
| 17 DECLARE_bool(forceSRGB); |
17 DECLARE_bool(gpu); | 18 DECLARE_bool(gpu); |
18 DECLARE_string(images); | 19 DECLARE_string(images); |
19 DECLARE_string(colorImages); | 20 DECLARE_string(colorImages); |
20 DECLARE_string(match); | 21 DECLARE_string(match); |
21 DECLARE_bool(quiet); | 22 DECLARE_bool(quiet); |
22 DECLARE_bool(resetGpuContext); | 23 DECLARE_bool(resetGpuContext); |
23 DECLARE_bool(preAbandonGpuContext); | 24 DECLARE_bool(preAbandonGpuContext); |
24 DECLARE_bool(abandonGpuContext); | 25 DECLARE_bool(abandonGpuContext); |
25 DECLARE_bool(releaseAndAbandonGpuContext); | 26 DECLARE_bool(releaseAndAbandonGpuContext); |
26 DECLARE_string(skps); | 27 DECLARE_string(skps); |
(...skipping 14 matching lines...) Expand all Loading... |
41 * | 42 * |
42 * Returns true if each argument to the images flag is meaningful: | 43 * Returns true if each argument to the images flag is meaningful: |
43 * - If the file/directory does not exist, return false. | 44 * - If the file/directory does not exist, return false. |
44 * - If |dir| does not have any supported images (based on file type), return f
alse. | 45 * - If |dir| does not have any supported images (based on file type), return f
alse. |
45 * - If |dir| is a single file, assume the user is deliberately testing this im
age, | 46 * - If |dir| is a single file, assume the user is deliberately testing this im
age, |
46 * regardless of file type. | 47 * regardless of file type. |
47 */ | 48 */ |
48 bool CollectImages(SkCommandLineFlags::StringArray dir, SkTArray<SkString>* outp
ut); | 49 bool CollectImages(SkCommandLineFlags::StringArray dir, SkTArray<SkString>* outp
ut); |
49 | 50 |
50 #endif | 51 #endif |
OLD | NEW |