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 "DMSerializeTask.h" | 5 #include "DMSerializeTask.h" |
6 #include "DMUtil.h" | 6 #include "DMUtil.h" |
7 #include "DMWriteTask.h" | 7 #include "DMWriteTask.h" |
8 | 8 |
9 namespace DM { | 9 namespace DM { |
10 | 10 |
(...skipping 22 matching lines...) Expand all Loading... |
33 | 33 |
34 #define SPAWN(ChildTask, ...) this->spawnChild(SkNEW_ARGS(ChildTask, (*this, __V
A_ARGS__))) | 34 #define SPAWN(ChildTask, ...) this->spawnChild(SkNEW_ARGS(ChildTask, (*this, __V
A_ARGS__))) |
35 SPAWN(ExpectationsTask, fExpectations, bm); | 35 SPAWN(ExpectationsTask, fExpectations, bm); |
36 | 36 |
37 SPAWN(PipeTask, fGMFactory(NULL), bm, PipeTask::kInProcess_Mode); | 37 SPAWN(PipeTask, fGMFactory(NULL), bm, PipeTask::kInProcess_Mode); |
38 SPAWN(PipeTask, fGMFactory(NULL), bm, PipeTask::kCrossProcess_Mode); | 38 SPAWN(PipeTask, fGMFactory(NULL), bm, PipeTask::kCrossProcess_Mode); |
39 SPAWN(PipeTask, fGMFactory(NULL), bm, PipeTask::kSharedAddress_Mode); | 39 SPAWN(PipeTask, fGMFactory(NULL), bm, PipeTask::kSharedAddress_Mode); |
40 | 40 |
41 SPAWN(QuiltTask, fGMFactory(NULL), bm, QuiltTask::kNone_BBH, QuiltTask::
kDefault_Backend); | 41 SPAWN(QuiltTask, fGMFactory(NULL), bm, QuiltTask::kNone_BBH, QuiltTask::
kDefault_Backend); |
42 SPAWN(QuiltTask, fGMFactory(NULL), bm, QuiltTask::kRTree_BBH, QuiltTask::
kDefault_Backend); | 42 SPAWN(QuiltTask, fGMFactory(NULL), bm, QuiltTask::kRTree_BBH, QuiltTask::
kDefault_Backend); |
43 SPAWN(QuiltTask, fGMFactory(NULL), bm, QuiltTask::kQuadTree_BBH, QuiltTask::
kDefault_Backend); | |
44 SPAWN(QuiltTask, fGMFactory(NULL), bm, QuiltTask::kTileGrid_BBH, QuiltTask::
kDefault_Backend); | 43 SPAWN(QuiltTask, fGMFactory(NULL), bm, QuiltTask::kTileGrid_BBH, QuiltTask::
kDefault_Backend); |
45 | |
46 SPAWN(QuiltTask, fGMFactory(NULL), bm, QuiltTask::kNone_BBH, QuiltTask::
kSkRecord_Backend); | 44 SPAWN(QuiltTask, fGMFactory(NULL), bm, QuiltTask::kNone_BBH, QuiltTask::
kSkRecord_Backend); |
47 SPAWN(QuiltTask, fGMFactory(NULL), bm, QuiltTask::kRTree_BBH, QuiltTask::
kSkRecord_Backend); | 45 SPAWN(QuiltTask, fGMFactory(NULL), bm, QuiltTask::kRTree_BBH, QuiltTask::
kSkRecord_Backend); |
| 46 SPAWN(QuiltTask, fGMFactory(NULL), bm, QuiltTask::kTileGrid_BBH, QuiltTask::
kSkRecord_Backend); |
| 47 |
| 48 /* skia:2834 SkQuadTree does not return its data in the order it was inserte
d. |
| 49 SPAWN(QuiltTask, fGMFactory(NULL), bm, QuiltTask::kQuadTree_BBH, QuiltTask::
kDefault_Backend); |
48 SPAWN(QuiltTask, fGMFactory(NULL), bm, QuiltTask::kQuadTree_BBH, QuiltTask::
kSkRecord_Backend); | 50 SPAWN(QuiltTask, fGMFactory(NULL), bm, QuiltTask::kQuadTree_BBH, QuiltTask::
kSkRecord_Backend); |
49 SPAWN(QuiltTask, fGMFactory(NULL), bm, QuiltTask::kTileGrid_BBH, QuiltTask::
kSkRecord_Backend); | 51 */ |
50 | 52 |
51 SPAWN(SerializeTask, fGMFactory(NULL), bm, SerializeTask::kNormal_Mode); | 53 SPAWN(SerializeTask, fGMFactory(NULL), bm, SerializeTask::kNormal_Mode); |
52 SPAWN(SerializeTask, fGMFactory(NULL), bm, SerializeTask::kSkRecord_Mode); | 54 SPAWN(SerializeTask, fGMFactory(NULL), bm, SerializeTask::kSkRecord_Mode); |
53 | 55 |
54 SPAWN(WriteTask, bm); | 56 SPAWN(WriteTask, bm); |
55 #undef SPAWN | 57 #undef SPAWN |
56 } | 58 } |
57 | 59 |
58 bool CpuGMTask::shouldSkip() const { | 60 bool CpuGMTask::shouldSkip() const { |
59 if (kRGB_565_SkColorType == fColorType && (fGM->getFlags() & skiagm::GM::kSk
ip565_Flag)) { | 61 if (kRGB_565_SkColorType == fColorType && (fGM->getFlags() & skiagm::GM::kSk
ip565_Flag)) { |
60 return true; | 62 return true; |
61 } | 63 } |
62 if (fGM->getFlags() & skiagm::GM::kGPUOnly_Flag) { | 64 if (fGM->getFlags() & skiagm::GM::kGPUOnly_Flag) { |
63 return true; | 65 return true; |
64 } | 66 } |
65 return false; | 67 return false; |
66 } | 68 } |
67 | 69 |
68 } // namespace DM | 70 } // namespace DM |
OLD | NEW |