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 26 matching lines...) Expand all Loading... |
44 using skiatest::TestRegistry; | 43 using skiatest::TestRegistry; |
45 | 44 |
46 static const char kGpuAPINameGL[] = "gl"; | 45 static const char kGpuAPINameGL[] = "gl"; |
47 static const char kGpuAPINameGLES[] = "gles"; | 46 static const char kGpuAPINameGLES[] = "gles"; |
48 | 47 |
49 DEFINE_bool(gms, true, "Run GMs?"); | 48 DEFINE_bool(gms, true, "Run GMs?"); |
50 DEFINE_bool(tests, true, "Run tests?"); | 49 DEFINE_bool(tests, true, "Run tests?"); |
51 DEFINE_bool(reportUsedChars, false, "Output test font construction data to be pa
sted into" | 50 DEFINE_bool(reportUsedChars, false, "Output test font construction data to be pa
sted into" |
52 " create_test_font.cpp."); | 51 " create_test_font.cpp."); |
53 | 52 |
54 __SK_FORCE_IMAGE_DECODER_LINKING; | |
55 | |
56 // "FooBar" -> "foobar". Obviously, ASCII only. | 53 // "FooBar" -> "foobar". Obviously, ASCII only. |
57 static SkString lowercase(SkString s) { | 54 static SkString lowercase(SkString s) { |
58 for (size_t i = 0; i < s.size(); i++) { | 55 for (size_t i = 0; i < s.size(); i++) { |
59 s[i] = tolower(s[i]); | 56 s[i] = tolower(s[i]); |
60 } | 57 } |
61 return s; | 58 return s; |
62 } | 59 } |
63 | 60 |
64 static const GrContextFactory::GLContextType native = GrContextFactory::kNative_
GLContextType; | 61 static const GrContextFactory::GLContextType native = GrContextFactory::kNative_
GLContextType; |
65 static const GrContextFactory::GLContextType nvpr = GrContextFactory::kNVPR_GL
ContextType; | 62 static const GrContextFactory::GLContextType nvpr = GrContextFactory::kNVPR_GL
ContextType; |
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
244 report_failures(failures); | 241 report_failures(failures); |
245 return failures.count() > 0; | 242 return failures.count() > 0; |
246 } | 243 } |
247 | 244 |
248 #if !defined(SK_BUILD_FOR_IOS) && !defined(SK_BUILD_FOR_NACL) | 245 #if !defined(SK_BUILD_FOR_IOS) && !defined(SK_BUILD_FOR_NACL) |
249 int main(int argc, char** argv) { | 246 int main(int argc, char** argv) { |
250 SkCommandLineFlags::Parse(argc, argv); | 247 SkCommandLineFlags::Parse(argc, argv); |
251 return dm_main(); | 248 return dm_main(); |
252 } | 249 } |
253 #endif | 250 #endif |
OLD | NEW |