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 "CrashHandler.h" | 4 #include "CrashHandler.h" |
5 #include "LazyDecodeBitmap.h" | 5 #include "LazyDecodeBitmap.h" |
6 #include "SkCommonFlags.h" | 6 #include "SkCommonFlags.h" |
7 #include "SkForceLinking.h" | |
8 #include "SkGraphics.h" | 7 #include "SkGraphics.h" |
9 #include "SkOSFile.h" | 8 #include "SkOSFile.h" |
10 #include "SkPicture.h" | 9 #include "SkPicture.h" |
11 #include "SkString.h" | 10 #include "SkString.h" |
12 #include "SkTaskGroup.h" | 11 #include "SkTaskGroup.h" |
13 #include "Test.h" | 12 #include "Test.h" |
14 #include "gm.h" | 13 #include "gm.h" |
15 #include "sk_tool_utils.h" | 14 #include "sk_tool_utils.h" |
16 #include "sk_tool_utils_flags.h" | 15 #include "sk_tool_utils_flags.h" |
17 | 16 |
(...skipping 23 matching lines...) Expand all Loading... |
41 using skiatest::TestRegistry; | 40 using skiatest::TestRegistry; |
42 | 41 |
43 static const char kGpuAPINameGL[] = "gl"; | 42 static const char kGpuAPINameGL[] = "gl"; |
44 static const char kGpuAPINameGLES[] = "gles"; | 43 static const char kGpuAPINameGLES[] = "gles"; |
45 | 44 |
46 DEFINE_bool(gms, true, "Run GMs?"); | 45 DEFINE_bool(gms, true, "Run GMs?"); |
47 DEFINE_bool(tests, true, "Run tests?"); | 46 DEFINE_bool(tests, true, "Run tests?"); |
48 DEFINE_bool(reportUsedChars, false, "Output test font construction data to be pa
sted into" | 47 DEFINE_bool(reportUsedChars, false, "Output test font construction data to be pa
sted into" |
49 " create_test_font.cpp."); | 48 " create_test_font.cpp."); |
50 | 49 |
51 __SK_FORCE_IMAGE_DECODER_LINKING; | |
52 | |
53 // "FooBar" -> "foobar". Obviously, ASCII only. | 50 // "FooBar" -> "foobar". Obviously, ASCII only. |
54 static SkString lowercase(SkString s) { | 51 static SkString lowercase(SkString s) { |
55 for (size_t i = 0; i < s.size(); i++) { | 52 for (size_t i = 0; i < s.size(); i++) { |
56 s[i] = tolower(s[i]); | 53 s[i] = tolower(s[i]); |
57 } | 54 } |
58 return s; | 55 return s; |
59 } | 56 } |
60 | 57 |
61 static const GrContextFactory::GLContextType native = GrContextFactory::kNative_
GLContextType; | 58 static const GrContextFactory::GLContextType native = GrContextFactory::kNative_
GLContextType; |
62 static const GrContextFactory::GLContextType nvpr = GrContextFactory::kNVPR_GL
ContextType; | 59 static const GrContextFactory::GLContextType nvpr = GrContextFactory::kNVPR_GL
ContextType; |
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
240 report_failures(failures); | 237 report_failures(failures); |
241 return failures.count() > 0; | 238 return failures.count() > 0; |
242 } | 239 } |
243 | 240 |
244 #if !defined(SK_BUILD_FOR_IOS) && !defined(SK_BUILD_FOR_NACL) | 241 #if !defined(SK_BUILD_FOR_IOS) && !defined(SK_BUILD_FOR_NACL) |
245 int main(int argc, char** argv) { | 242 int main(int argc, char** argv) { |
246 SkCommandLineFlags::Parse(argc, argv); | 243 SkCommandLineFlags::Parse(argc, argv); |
247 return dm_main(); | 244 return dm_main(); |
248 } | 245 } |
249 #endif | 246 #endif |
OLD | NEW |