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 "SkBenchmark.h" | 4 #include "SkBenchmark.h" |
5 #include "SkCommandLineFlags.h" | 5 #include "SkCommandLineFlags.h" |
6 #include "SkForceLinking.h" | 6 #include "SkForceLinking.h" |
7 #include "SkGraphics.h" | 7 #include "SkGraphics.h" |
8 #include "SkString.h" | 8 #include "SkString.h" |
9 #include "Test.h" | 9 #include "Test.h" |
10 #include "gm.h" | 10 #include "gm.h" |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 static const GrContextFactory::GLContextType null = GrContextFactory::kNull_GL
ContextType; | 63 static const GrContextFactory::GLContextType null = GrContextFactory::kNull_GL
ContextType; |
64 static const GrContextFactory::GLContextType debug = GrContextFactory::kDebug_G
LContextType; | 64 static const GrContextFactory::GLContextType debug = GrContextFactory::kDebug_G
LContextType; |
65 static const GrContextFactory::GLContextType angle = | 65 static const GrContextFactory::GLContextType angle = |
66 #if SK_ANGLE | 66 #if SK_ANGLE |
67 GrContextFactory::kANGLE_GLContextType; | 67 GrContextFactory::kANGLE_GLContextType; |
68 #else | 68 #else |
69 native; | 69 native; |
70 #endif | 70 #endif |
71 static const GrContextFactory::GLContextType mesa = | 71 static const GrContextFactory::GLContextType mesa = |
72 #if SK_MESA | 72 #if SK_MESA |
73 GLContextFactory::kMESA_GLContextType; | 73 GrContextFactory::kMESA_GLContextType; |
74 #else | 74 #else |
75 native; | 75 native; |
76 #endif | 76 #endif |
77 | 77 |
78 static void kick_off_gms(const SkTDArray<GMRegistry::Factory>& gms, | 78 static void kick_off_gms(const SkTDArray<GMRegistry::Factory>& gms, |
79 const SkTArray<SkString>& configs, | 79 const SkTArray<SkString>& configs, |
80 const DM::Expectations& expectations, | 80 const DM::Expectations& expectations, |
81 DM::Reporter* reporter, | 81 DM::Reporter* reporter, |
82 DM::TaskRunner* tasks) { | 82 DM::TaskRunner* tasks) { |
83 #define START(name, type, ...)
\ | 83 #define START(name, type, ...)
\ |
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
223 SkGraphics::Term(); | 223 SkGraphics::Term(); |
224 | 224 |
225 return reporter.failed() > 0; | 225 return reporter.failed() > 0; |
226 } | 226 } |
227 | 227 |
228 #if !defined(SK_BUILD_FOR_IOS) && !defined(SK_BUILD_FOR_NACL) | 228 #if !defined(SK_BUILD_FOR_IOS) && !defined(SK_BUILD_FOR_NACL) |
229 int main(int argc, char** argv) { | 229 int main(int argc, char** argv) { |
230 return tool_main(argc, argv); | 230 return tool_main(argc, argv); |
231 } | 231 } |
232 #endif | 232 #endif |
OLD | NEW |