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(gpu); | 17 DECLARE_bool(gpu); |
18 DECLARE_string(images); | 18 DECLARE_string(images); |
19 DECLARE_string(match); | 19 DECLARE_string(match); |
20 DECLARE_bool(quiet); | 20 DECLARE_bool(quiet); |
21 DECLARE_bool(resetGpuContext); | 21 DECLARE_bool(resetGpuContext); |
22 DECLARE_bool(preAbandonGpuContext); | 22 DECLARE_bool(preAbandonGpuContext); |
23 DECLARE_bool(abandonGpuContext); | 23 DECLARE_bool(abandonGpuContext); |
| 24 DECLARE_bool(releaseAndAbandonGpuContext); |
24 DECLARE_string(skps); | 25 DECLARE_string(skps); |
25 DECLARE_int32(threads); | 26 DECLARE_int32(threads); |
26 DECLARE_string(resourcePath); | 27 DECLARE_string(resourcePath); |
27 DECLARE_bool(verbose); | 28 DECLARE_bool(verbose); |
28 DECLARE_bool(veryVerbose); | 29 DECLARE_bool(veryVerbose); |
29 DECLARE_string(writePath); | 30 DECLARE_string(writePath); |
30 DECLARE_bool(pre_log); | 31 DECLARE_bool(pre_log); |
31 | 32 |
32 DECLARE_string(key); | 33 DECLARE_string(key); |
33 DECLARE_string(properties); | 34 DECLARE_string(properties); |
34 | 35 |
35 /** | 36 /** |
36 * Helper to assist in collecting image paths from --images. | 37 * Helper to assist in collecting image paths from --images. |
37 * | 38 * |
38 * Populates an array of strings with paths to images to test. | 39 * Populates an array of strings with paths to images to test. |
39 * | 40 * |
40 * Returns true if each argument to --images is meaningful: | 41 * Returns true if each argument to --images is meaningful: |
41 * - If the file/directory does not exist, return false. | 42 * - If the file/directory does not exist, return false. |
42 * - If a directory passed to --images does not have any supported images (base
d on file | 43 * - If a directory passed to --images does not have any supported images (base
d on file |
43 * type), return false. | 44 * type), return false. |
44 * - If a file is passed to --images, assume the user is deliberately testing t
his image, | 45 * - If a file is passed to --images, assume the user is deliberately testing t
his image, |
45 * regardless of file type. | 46 * regardless of file type. |
46 */ | 47 */ |
47 bool CollectImages(SkTArray<SkString>*); | 48 bool CollectImages(SkTArray<SkString>*); |
48 | 49 |
49 #endif | 50 #endif |
OLD | NEW |