OLD | NEW |
1 #include "DMCpuGMTask.h" | 1 #include "DMCpuGMTask.h" |
2 #include "DMExpectationsTask.h" | 2 #include "DMExpectationsTask.h" |
3 #include "DMPipeTask.h" | 3 #include "DMPipeTask.h" |
| 4 #include "DMQuiltTask.h" |
4 #include "DMRecordTask.h" | 5 #include "DMRecordTask.h" |
5 #include "DMReplayTask.h" | 6 #include "DMReplayTask.h" |
6 #include "DMSerializeTask.h" | 7 #include "DMSerializeTask.h" |
7 #include "DMTileGridTask.h" | |
8 #include "DMUtil.h" | 8 #include "DMUtil.h" |
9 #include "DMWriteTask.h" | 9 #include "DMWriteTask.h" |
10 | 10 |
11 namespace DM { | 11 namespace DM { |
12 | 12 |
13 CpuGMTask::CpuGMTask(const char* config, | 13 CpuGMTask::CpuGMTask(const char* config, |
14 Reporter* reporter, | 14 Reporter* reporter, |
15 TaskRunner* taskRunner, | 15 TaskRunner* taskRunner, |
16 const Expectations& expectations, | 16 const Expectations& expectations, |
17 skiagm::GMRegistry::Factory gmFactory, | 17 skiagm::GMRegistry::Factory gmFactory, |
(...skipping 14 matching lines...) Expand all Loading... |
32 canvas.concat(fGM->getInitialTransform()); | 32 canvas.concat(fGM->getInitialTransform()); |
33 fGM->draw(&canvas); | 33 fGM->draw(&canvas); |
34 canvas.flush(); | 34 canvas.flush(); |
35 | 35 |
36 #define SPAWN(ChildTask, ...) this->spawnChild(SkNEW_ARGS(ChildTask, (*this, __V
A_ARGS__))) | 36 #define SPAWN(ChildTask, ...) this->spawnChild(SkNEW_ARGS(ChildTask, (*this, __V
A_ARGS__))) |
37 SPAWN(ExpectationsTask, fExpectations, bitmap); | 37 SPAWN(ExpectationsTask, fExpectations, bitmap); |
38 | 38 |
39 SPAWN(PipeTask, fGMFactory(NULL), bitmap, false, false); | 39 SPAWN(PipeTask, fGMFactory(NULL), bitmap, false, false); |
40 SPAWN(PipeTask, fGMFactory(NULL), bitmap, true, false); | 40 SPAWN(PipeTask, fGMFactory(NULL), bitmap, true, false); |
41 SPAWN(PipeTask, fGMFactory(NULL), bitmap, true, true); | 41 SPAWN(PipeTask, fGMFactory(NULL), bitmap, true, true); |
| 42 SPAWN(QuiltTask, fGMFactory(NULL), bitmap); |
42 SPAWN(RecordTask, fGMFactory(NULL), bitmap); | 43 SPAWN(RecordTask, fGMFactory(NULL), bitmap); |
43 SPAWN(ReplayTask, fGMFactory(NULL), bitmap, false); | 44 SPAWN(ReplayTask, fGMFactory(NULL), bitmap, false); |
44 SPAWN(ReplayTask, fGMFactory(NULL), bitmap, true); | 45 SPAWN(ReplayTask, fGMFactory(NULL), bitmap, true); |
45 SPAWN(SerializeTask, fGMFactory(NULL), bitmap); | 46 SPAWN(SerializeTask, fGMFactory(NULL), bitmap); |
46 SPAWN(TileGridTask, fGMFactory(NULL), bitmap, SkISize::Make(16,16)); | |
47 | 47 |
48 SPAWN(WriteTask, bitmap); | 48 SPAWN(WriteTask, bitmap); |
49 #undef SPAWN | 49 #undef SPAWN |
50 } | 50 } |
51 | 51 |
52 bool CpuGMTask::shouldSkip() const { | 52 bool CpuGMTask::shouldSkip() const { |
53 if (kRGB_565_SkColorType == fColorType && (fGM->getFlags() & skiagm::GM::kSk
ip565_Flag)) { | 53 if (kRGB_565_SkColorType == fColorType && (fGM->getFlags() & skiagm::GM::kSk
ip565_Flag)) { |
54 return true; | 54 return true; |
55 } | 55 } |
56 if (fGM->getFlags() & skiagm::GM::kGPUOnly_Flag) { | 56 if (fGM->getFlags() & skiagm::GM::kGPUOnly_Flag) { |
57 return true; | 57 return true; |
58 } | 58 } |
59 return false; | 59 return false; |
60 } | 60 } |
61 | 61 |
62 } // namespace DM | 62 } // namespace DM |
OLD | NEW |