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 |
(...skipping 14 matching lines...) Expand all Loading... |
25 DECLARE_bool(abandonGpuContext); | 25 DECLARE_bool(abandonGpuContext); |
26 DECLARE_bool(releaseAndAbandonGpuContext); | 26 DECLARE_bool(releaseAndAbandonGpuContext); |
27 DECLARE_string(skps); | 27 DECLARE_string(skps); |
28 DECLARE_string(svgs); | 28 DECLARE_string(svgs); |
29 DECLARE_int32(threads); | 29 DECLARE_int32(threads); |
30 DECLARE_string(resourcePath); | 30 DECLARE_string(resourcePath); |
31 DECLARE_bool(verbose); | 31 DECLARE_bool(verbose); |
32 DECLARE_bool(veryVerbose); | 32 DECLARE_bool(veryVerbose); |
33 DECLARE_string(writePath); | 33 DECLARE_string(writePath); |
34 DECLARE_bool(pre_log); | 34 DECLARE_bool(pre_log); |
| 35 DECLARE_bool(analyticAA); |
35 | 36 |
36 DECLARE_string(key); | 37 DECLARE_string(key); |
37 DECLARE_string(properties); | 38 DECLARE_string(properties); |
38 | 39 |
39 /** | 40 /** |
40 * Helper to assist in collecting image paths from |dir| specified through a co
mmand line flag. | 41 * Helper to assist in collecting image paths from |dir| specified through a co
mmand line flag. |
41 * | 42 * |
42 * Populates |output|, an array of strings with paths to images to test. | 43 * Populates |output|, an array of strings with paths to images to test. |
43 * | 44 * |
44 * Returns true if each argument to the images flag is meaningful: | 45 * Returns true if each argument to the images flag is meaningful: |
45 * - If the file/directory does not exist, return false. | 46 * - If the file/directory does not exist, return false. |
46 * - If |dir| does not have any supported images (based on file type), return f
alse. | 47 * - If |dir| does not have any supported images (based on file type), return f
alse. |
47 * - If |dir| is a single file, assume the user is deliberately testing this im
age, | 48 * - If |dir| is a single file, assume the user is deliberately testing this im
age, |
48 * regardless of file type. | 49 * regardless of file type. |
49 */ | 50 */ |
50 bool CollectImages(SkCommandLineFlags::StringArray dir, SkTArray<SkString>* outp
ut); | 51 bool CollectImages(SkCommandLineFlags::StringArray dir, SkTArray<SkString>* outp
ut); |
51 | 52 |
52 #endif | 53 #endif |
OLD | NEW |