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