| OLD | NEW |
| 1 #include "DMCpuTask.h" | 1 #include "DMCpuTask.h" |
| 2 #include "DMPipeTask.h" |
| 2 #include "DMReplayTask.h" | 3 #include "DMReplayTask.h" |
| 3 #include "DMSerializeTask.h" | 4 #include "DMSerializeTask.h" |
| 4 #include "DMUtil.h" | 5 #include "DMUtil.h" |
| 5 #include "DMWriteTask.h" | 6 #include "DMWriteTask.h" |
| 6 | 7 |
| 7 namespace DM { | 8 namespace DM { |
| 8 | 9 |
| 9 CpuTask::CpuTask(const char* name, | 10 CpuTask::CpuTask(const char* name, |
| 10 Reporter* reporter, | 11 Reporter* reporter, |
| 11 TaskRunner* taskRunner, | 12 TaskRunner* taskRunner, |
| (...skipping 14 matching lines...) Expand all Loading... |
| 26 | 27 |
| 27 SkCanvas canvas(bitmap); | 28 SkCanvas canvas(bitmap); |
| 28 canvas.concat(fGM->getInitialTransform()); | 29 canvas.concat(fGM->getInitialTransform()); |
| 29 fGM->draw(&canvas); | 30 fGM->draw(&canvas); |
| 30 canvas.flush(); | 31 canvas.flush(); |
| 31 | 32 |
| 32 if (!MeetsExpectations(fExpectations, bitmap)) { | 33 if (!MeetsExpectations(fExpectations, bitmap)) { |
| 33 this->fail(); | 34 this->fail(); |
| 34 } | 35 } |
| 35 | 36 |
| 37 this->spawnChild(SkNEW_ARGS(PipeTask, (*this, fGMFactory(NULL), bitmap, fals
e, false))); |
| 38 this->spawnChild(SkNEW_ARGS(PipeTask, (*this, fGMFactory(NULL), bitmap, true
, false))); |
| 39 this->spawnChild(SkNEW_ARGS(PipeTask, (*this, fGMFactory(NULL), bitmap, true
, true))); |
| 40 |
| 36 this->spawnChild(SkNEW_ARGS(ReplayTask, (*this, fGMFactory(NULL), bitmap))); | 41 this->spawnChild(SkNEW_ARGS(ReplayTask, (*this, fGMFactory(NULL), bitmap))); |
| 37 this->spawnChild(SkNEW_ARGS(SerializeTask, (*this, fGMFactory(NULL), bitmap)
)); | 42 this->spawnChild(SkNEW_ARGS(SerializeTask, (*this, fGMFactory(NULL), bitmap)
)); |
| 38 this->spawnChild(SkNEW_ARGS(WriteTask, (*this, bitmap))); | 43 this->spawnChild(SkNEW_ARGS(WriteTask, (*this, bitmap))); |
| 39 } | 44 } |
| 40 | 45 |
| 41 bool CpuTask::shouldSkip() const { | 46 bool CpuTask::shouldSkip() const { |
| 42 if (SkBitmap::kRGB_565_Config == fConfig && (fGM->getFlags() & skiagm::GM::k
Skip565_Flag)) { | 47 if (SkBitmap::kRGB_565_Config == fConfig && (fGM->getFlags() & skiagm::GM::k
Skip565_Flag)) { |
| 43 return true; | 48 return true; |
| 44 } | 49 } |
| 45 if (fGM->getFlags() & skiagm::GM::kGPUOnly_Flag) { | 50 if (fGM->getFlags() & skiagm::GM::kGPUOnly_Flag) { |
| 46 return true; | 51 return true; |
| 47 } | 52 } |
| 48 return false; | 53 return false; |
| 49 } | 54 } |
| 50 | 55 |
| 51 } // namespace DM | 56 } // namespace DM |
| OLD | NEW |