OLD | NEW |
1 #include "DMTask.h" | 1 #include "DMTask.h" |
2 | 2 |
3 #include "DMTaskRunner.h" | 3 #include "DMTaskRunner.h" |
4 #include "DMUtil.h" | 4 #include "DMUtil.h" |
5 #include "SkBitmap.h" | 5 #include "SkBitmap.h" |
6 #include "SkCommandLineFlags.h" | 6 #include "SkCommandLineFlags.h" |
7 | 7 |
8 namespace DM { | 8 namespace DM { |
9 | 9 |
10 Task::Task(Reporter* reporter, TaskRunner* taskRunner) | 10 Task::Task(Reporter* reporter, TaskRunner* taskRunner) |
(...skipping 28 matching lines...) Expand all Loading... |
39 } | 39 } |
40 | 40 |
41 void Task::fail(const char* msg) { | 41 void Task::fail(const char* msg) { |
42 SkString failure(this->name()); | 42 SkString failure(this->name()); |
43 if (msg) { | 43 if (msg) { |
44 failure.appendf(": %s", msg); | 44 failure.appendf(": %s", msg); |
45 } | 45 } |
46 fReporter->fail(failure); | 46 fReporter->fail(failure); |
47 } | 47 } |
48 | 48 |
| 49 GrContextFactory* Task::getGrContextFactory() const { |
| 50 return fTaskRunner->getGrContextFactory(); |
| 51 } |
| 52 |
49 } // namespace DM | 53 } // namespace DM |
OLD | NEW |