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 "DMQuiltTask.h" |
5 #include "DMRecordTask.h" | 5 #include "DMRecordTask.h" |
6 #include "DMReplayTask.h" | 6 #include "DMReplayTask.h" |
7 #include "DMSerializeTask.h" | 7 #include "DMSerializeTask.h" |
8 #include "DMUtil.h" | 8 #include "DMUtil.h" |
9 #include "DMWriteTask.h" | 9 #include "DMWriteTask.h" |
10 | 10 |
(...skipping 22 matching lines...) Expand all Loading... |
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(QuiltTask, fGMFactory(NULL), bitmap); |
43 SPAWN(RecordTask, fGMFactory(NULL), bitmap); | 43 SPAWN(RecordTask, fGMFactory(NULL), bitmap, true); |
| 44 SPAWN(RecordTask, fGMFactory(NULL), bitmap, false); |
44 SPAWN(ReplayTask, fGMFactory(NULL), bitmap, false); | 45 SPAWN(ReplayTask, fGMFactory(NULL), bitmap, false); |
45 SPAWN(ReplayTask, fGMFactory(NULL), bitmap, true); | 46 SPAWN(ReplayTask, fGMFactory(NULL), bitmap, true); |
46 SPAWN(SerializeTask, fGMFactory(NULL), bitmap); | 47 SPAWN(SerializeTask, fGMFactory(NULL), bitmap); |
47 | 48 |
48 SPAWN(WriteTask, bitmap); | 49 SPAWN(WriteTask, bitmap); |
49 #undef SPAWN | 50 #undef SPAWN |
50 } | 51 } |
51 | 52 |
52 bool CpuGMTask::shouldSkip() const { | 53 bool CpuGMTask::shouldSkip() const { |
53 if (kRGB_565_SkColorType == fColorType && (fGM->getFlags() & skiagm::GM::kSk
ip565_Flag)) { | 54 if (kRGB_565_SkColorType == fColorType && (fGM->getFlags() & skiagm::GM::kSk
ip565_Flag)) { |
54 return true; | 55 return true; |
55 } | 56 } |
56 if (fGM->getFlags() & skiagm::GM::kGPUOnly_Flag) { | 57 if (fGM->getFlags() & skiagm::GM::kGPUOnly_Flag) { |
57 return true; | 58 return true; |
58 } | 59 } |
59 return false; | 60 return false; |
60 } | 61 } |
61 | 62 |
62 } // namespace DM | 63 } // namespace DM |
OLD | NEW |