OLD | NEW |
1 // Main binary for DM. | 1 // Main binary for DM. |
2 // For a high-level overview, please see dm/README. | 2 // For a high-level overview, please see dm/README. |
3 | 3 |
4 #include "GrContext.h" | 4 #include "GrContext.h" |
5 #include "GrContextFactory.h" | 5 #include "GrContextFactory.h" |
6 #include "SkCommandLineFlags.h" | 6 #include "SkCommandLineFlags.h" |
7 #include "SkForceLinking.h" | 7 #include "SkForceLinking.h" |
8 #include "SkGraphics.h" | 8 #include "SkGraphics.h" |
9 #include "SkString.h" | 9 #include "SkString.h" |
10 #include "gm.h" | 10 #include "gm.h" |
(...skipping 17 matching lines...) Expand all Loading... |
28 "If a file, compare generated images against JSON expectations at
this path."); | 28 "If a file, compare generated images against JSON expectations at
this path."); |
29 DEFINE_string(resources, "resources", "Path to resources directory."); | 29 DEFINE_string(resources, "resources", "Path to resources directory."); |
30 DEFINE_string(match, "", "[~][^]substring[$] [...] of GM name to run.\n" | 30 DEFINE_string(match, "", "[~][^]substring[$] [...] of GM name to run.\n" |
31 "Multiple matches may be separated by spaces.\n" | 31 "Multiple matches may be separated by spaces.\n" |
32 "~ causes a matching GM to always be skipped\n" | 32 "~ causes a matching GM to always be skipped\n" |
33 "^ requires the start of the GM to match\n" | 33 "^ requires the start of the GM to match\n" |
34 "$ requires the end of the GM to match\n" | 34 "$ requires the end of the GM to match\n" |
35 "^ and $ requires an exact match\n" | 35 "^ and $ requires an exact match\n" |
36 "If a GM does not match any list entry,\n" | 36 "If a GM does not match any list entry,\n" |
37 "it is skipped unless some list entry starts with ~"); | 37 "it is skipped unless some list entry starts with ~"); |
38 DEFINE_string(config, "8888 gpu", | 38 DEFINE_string(config, "565 8888 gpu", |
39 "Options: 565 8888 gpu msaa4 msaa16 gpunull gpudebug angle mesa"); // TO
DO(mtklein): pdf | 39 "Options: 565 8888 gpu msaa4 msaa16 gpunull gpudebug angle mesa"); // TO
DO(mtklein): pdf |
40 | 40 |
41 __SK_FORCE_IMAGE_DECODER_LINKING; | 41 __SK_FORCE_IMAGE_DECODER_LINKING; |
42 | 42 |
43 // "FooBar" -> "foobar". Obviously, ASCII only. | 43 // "FooBar" -> "foobar". Obviously, ASCII only. |
44 static SkString lowercase(SkString s) { | 44 static SkString lowercase(SkString s) { |
45 for (size_t i = 0; i < s.size(); i++) { | 45 for (size_t i = 0; i < s.size(); i++) { |
46 s[i] = tolower(s[i]); | 46 s[i] = tolower(s[i]); |
47 } | 47 } |
48 return s; | 48 return s; |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
149 SkGraphics::Term(); | 149 SkGraphics::Term(); |
150 | 150 |
151 return reporter.failed() > 0; | 151 return reporter.failed() > 0; |
152 } | 152 } |
153 | 153 |
154 #if !defined(SK_BUILD_FOR_IOS) && !defined(SK_BUILD_FOR_NACL) | 154 #if !defined(SK_BUILD_FOR_IOS) && !defined(SK_BUILD_FOR_NACL) |
155 int main(int argc, char** argv) { | 155 int main(int argc, char** argv) { |
156 return tool_main(argc, argv); | 156 return tool_main(argc, argv); |
157 } | 157 } |
158 #endif | 158 #endif |
OLD | NEW |