Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(262)

Side by Side Diff: tools/flags/SkCommonFlags.h

Issue 2344533002: Fix SVG flag iOS linking (Closed)
Patch Set: Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « dm/DM.cpp ('k') | tools/flags/SkCommonFlags.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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(colorImages); 19 DECLARE_string(colorImages);
20 DECLARE_bool(simpleCodec); 20 DECLARE_bool(simpleCodec);
21 DECLARE_string(match); 21 DECLARE_string(match);
22 DECLARE_bool(quiet); 22 DECLARE_bool(quiet);
23 DECLARE_bool(resetGpuContext); 23 DECLARE_bool(resetGpuContext);
24 DECLARE_bool(preAbandonGpuContext); 24 DECLARE_bool(preAbandonGpuContext);
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_int32(threads); 29 DECLARE_int32(threads);
29 DECLARE_string(resourcePath); 30 DECLARE_string(resourcePath);
30 DECLARE_bool(verbose); 31 DECLARE_bool(verbose);
31 DECLARE_bool(veryVerbose); 32 DECLARE_bool(veryVerbose);
32 DECLARE_string(writePath); 33 DECLARE_string(writePath);
33 DECLARE_bool(pre_log); 34 DECLARE_bool(pre_log);
34 35
35 DECLARE_string(key); 36 DECLARE_string(key);
36 DECLARE_string(properties); 37 DECLARE_string(properties);
37 38
38 /** 39 /**
39 * Helper to assist in collecting image paths from |dir| specified through a co mmand line flag. 40 * Helper to assist in collecting image paths from |dir| specified through a co mmand line flag.
40 * 41 *
41 * Populates |output|, an array of strings with paths to images to test. 42 * Populates |output|, an array of strings with paths to images to test.
42 * 43 *
43 * Returns true if each argument to the images flag is meaningful: 44 * Returns true if each argument to the images flag is meaningful:
44 * - If the file/directory does not exist, return false. 45 * - If the file/directory does not exist, return false.
45 * - If |dir| does not have any supported images (based on file type), return f alse. 46 * - If |dir| does not have any supported images (based on file type), return f alse.
46 * - If |dir| is a single file, assume the user is deliberately testing this im age, 47 * - If |dir| is a single file, assume the user is deliberately testing this im age,
47 * regardless of file type. 48 * regardless of file type.
48 */ 49 */
49 bool CollectImages(SkCommandLineFlags::StringArray dir, SkTArray<SkString>* outp ut); 50 bool CollectImages(SkCommandLineFlags::StringArray dir, SkTArray<SkString>* outp ut);
50 51
51 #endif 52 #endif
OLDNEW
« no previous file with comments | « dm/DM.cpp ('k') | tools/flags/SkCommonFlags.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698