OLD | NEW |
1 #include "DMTestTask.h" | 1 #include "DMTestTask.h" |
2 #include "DMUtil.h" | 2 #include "DMUtil.h" |
3 #include "SkCommandLineFlags.h" | 3 #include "SkCommandLineFlags.h" |
4 #include "SkCommonFlags.h" | 4 #include "SkCommonFlags.h" |
5 | 5 |
6 DEFINE_bool2(pathOpsExtended, x, false, "Run extended pathOps tests."); | 6 // When PathOps threaded tests get going, they're briefly a big consumer of lots
of RAM. |
| 7 // We disable the internal threading there by default on 32-bit builds. |
| 8 static const bool is32Bit = sizeof(void*) == 4; |
| 9 |
| 10 DEFINE_bool2(pathOpsExtended, x, false, "Run extended pathOps tests."); |
| 11 DEFINE_bool2(pathOpsSingleThread, z, is32Bit, "Disallow pathOps tests from using
threads."); |
7 | 12 |
8 namespace DM { | 13 namespace DM { |
9 | 14 |
10 bool TestReporter::allowExtendedTest() const { return FLAGS_pathOpsExtended; } | 15 bool TestReporter::allowExtendedTest() const { return FLAGS_pathOpsExtended; } |
| 16 bool TestReporter::allowThreaded() const { return !FLAGS_pathOpsSingleThread
; } |
11 bool TestReporter::verbose() const { return FLAGS_veryVerbose; } | 17 bool TestReporter::verbose() const { return FLAGS_veryVerbose; } |
12 | 18 |
13 static SkString test_name(const char* name) { | 19 static SkString test_name(const char* name) { |
14 SkString result("test "); | 20 SkString result("test "); |
15 result.append(name); | 21 result.append(name); |
16 return result; | 22 return result; |
17 } | 23 } |
18 | 24 |
19 CpuTestTask::CpuTestTask(Reporter* reporter, | 25 CpuTestTask::CpuTestTask(Reporter* reporter, |
20 TaskRunner* taskRunner, | 26 TaskRunner* taskRunner, |
(...skipping 25 matching lines...) Expand all Loading... |
46 if (!fTest->passed()) { | 52 if (!fTest->passed()) { |
47 this->fail(fTestReporter.failure()); | 53 this->fail(fTestReporter.failure()); |
48 } | 54 } |
49 } | 55 } |
50 | 56 |
51 bool GpuTestTask::shouldSkip() const { | 57 bool GpuTestTask::shouldSkip() const { |
52 return kGPUDisabled; | 58 return kGPUDisabled; |
53 } | 59 } |
54 | 60 |
55 } // namespace DM | 61 } // namespace DM |
OLD | NEW |