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 "Benchmark.h" |
| 5 #include "CrashHandler.h" |
5 #include "SkCommandLineFlags.h" | 6 #include "SkCommandLineFlags.h" |
6 #include "SkForceLinking.h" | 7 #include "SkForceLinking.h" |
7 #include "SkGraphics.h" | 8 #include "SkGraphics.h" |
8 #include "SkPicture.h" | 9 #include "SkPicture.h" |
9 #include "SkString.h" | 10 #include "SkString.h" |
10 #include "Test.h" | 11 #include "Test.h" |
11 #include "gm.h" | 12 #include "gm.h" |
12 #include "CrashHandler.h" | |
13 | 13 |
14 #include "DMBenchTask.h" | 14 #include "DMBenchTask.h" |
15 #include "DMCpuGMTask.h" | 15 #include "DMCpuGMTask.h" |
16 #include "DMGpuGMTask.h" | 16 #include "DMGpuGMTask.h" |
17 #include "DMGpuSupport.h" | 17 #include "DMGpuSupport.h" |
18 #include "DMPDFTask.h" | 18 #include "DMPDFTask.h" |
19 #include "DMReporter.h" | 19 #include "DMReporter.h" |
20 #include "DMSKPTask.h" | 20 #include "DMSKPTask.h" |
21 #include "DMTask.h" | 21 #include "DMTask.h" |
22 #include "DMTaskRunner.h" | 22 #include "DMTaskRunner.h" |
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
242 if (sk_isdir(path)) { | 242 if (sk_isdir(path)) { |
243 expectations.reset(SkNEW_ARGS(DM::WriteTask::Expectations, (path
))); | 243 expectations.reset(SkNEW_ARGS(DM::WriteTask::Expectations, (path
))); |
244 } else { | 244 } else { |
245 expectations.reset(SkNEW_ARGS(DM::JsonExpectations, (path))); | 245 expectations.reset(SkNEW_ARGS(DM::JsonExpectations, (path))); |
246 } | 246 } |
247 } | 247 } |
248 } | 248 } |
249 | 249 |
250 SkTDArray<BenchRegistry::Factory> benches; | 250 SkTDArray<BenchRegistry::Factory> benches; |
251 if (FLAGS_benches) { | 251 if (FLAGS_benches) { |
252 append_matching_factories<SkBenchmark>(BenchRegistry::Head(), &benches); | 252 append_matching_factories<Benchmark>(BenchRegistry::Head(), &benches); |
253 } | 253 } |
254 | 254 |
255 SkTDArray<TestRegistry::Factory> tests; | 255 SkTDArray<TestRegistry::Factory> tests; |
256 if (FLAGS_tests) { | 256 if (FLAGS_tests) { |
257 append_matching_factories<Test>(TestRegistry::Head(), &tests); | 257 append_matching_factories<Test>(TestRegistry::Head(), &tests); |
258 } | 258 } |
259 | 259 |
260 SkDebugf("(%d GMs, %d benches) x %d configs, %d tests\n", | 260 SkDebugf("(%d GMs, %d benches) x %d configs, %d tests\n", |
261 gms.count(), benches.count(), configs.count(), tests.count()); | 261 gms.count(), benches.count(), configs.count(), tests.count()); |
262 DM::Reporter reporter; | 262 DM::Reporter reporter; |
(...skipping 10 matching lines...) Expand all Loading... |
273 reporter.getFailures(&failures); | 273 reporter.getFailures(&failures); |
274 report_failures(failures); | 274 report_failures(failures); |
275 return failures.count() > 0; | 275 return failures.count() > 0; |
276 } | 276 } |
277 | 277 |
278 #if !defined(SK_BUILD_FOR_IOS) && !defined(SK_BUILD_FOR_NACL) | 278 #if !defined(SK_BUILD_FOR_IOS) && !defined(SK_BUILD_FOR_NACL) |
279 int main(int argc, char** argv) { | 279 int main(int argc, char** argv) { |
280 return tool_main(argc, argv); | 280 return tool_main(argc, argv); |
281 } | 281 } |
282 #endif | 282 #endif |
OLD | NEW |