| 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 |
| 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 skiagm::GMRegistry::Factory gmFactory, |
| 16 const Expectations& expectations, | 17 const Expectations& expectations, |
| 17 skiagm::GMRegistry::Factory gmFactory, | |
| 18 SkColorType colorType) | 18 SkColorType colorType) |
| 19 : CpuTask(reporter, taskRunner) | 19 : CpuTask(reporter, taskRunner) |
| 20 , fGMFactory(gmFactory) | 20 , fGMFactory(gmFactory) |
| 21 , fGM(fGMFactory(NULL)) | 21 , fGM(fGMFactory(NULL)) |
| 22 , fName(UnderJoin(fGM->getName(), config)) | 22 , fName(UnderJoin(fGM->getName(), config)) |
| 23 , fExpectations(expectations) | 23 , fExpectations(expectations) |
| 24 , fColorType(colorType) | 24 , fColorType(colorType) |
| 25 {} | 25 {} |
| 26 | 26 |
| 27 void CpuGMTask::draw() { | 27 void CpuGMTask::draw() { |
| (...skipping 26 matching lines...) Expand all Loading... |
| 54 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)) { |
| 55 return true; | 55 return true; |
| 56 } | 56 } |
| 57 if (fGM->getFlags() & skiagm::GM::kGPUOnly_Flag) { | 57 if (fGM->getFlags() & skiagm::GM::kGPUOnly_Flag) { |
| 58 return true; | 58 return true; |
| 59 } | 59 } |
| 60 return false; | 60 return false; |
| 61 } | 61 } |
| 62 | 62 |
| 63 } // namespace DM | 63 } // namespace DM |
| OLD | NEW |