| OLD | NEW |
| 1 #include "DMPipeTask.h" | 1 #include "DMPipeTask.h" |
| 2 #include "DMUtil.h" | 2 #include "DMUtil.h" |
| 3 #include "DMWriteTask.h" | 3 #include "DMWriteTask.h" |
| 4 | 4 |
| 5 #include "SamplePipeControllers.h" | 5 #include "SamplePipeControllers.h" |
| 6 #include "SkCommandLineFlags.h" | 6 #include "SkCommandLineFlags.h" |
| 7 #include "SkGPipe.h" | 7 #include "SkGPipe.h" |
| 8 | 8 |
| 9 DEFINE_bool(pipe, true, "If true, check several pipe variants against the refere
nce bitmap."); | 9 DEFINE_bool(pipe, true, "If true, check several pipe variants against the refere
nce bitmap."); |
| 10 | 10 |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 } else { | 31 } else { |
| 32 return "pipe"; | 32 return "pipe"; |
| 33 } | 33 } |
| 34 } | 34 } |
| 35 | 35 |
| 36 PipeTask::PipeTask(const Task& parent, | 36 PipeTask::PipeTask(const Task& parent, |
| 37 skiagm::GM* gm, | 37 skiagm::GM* gm, |
| 38 SkBitmap reference, | 38 SkBitmap reference, |
| 39 bool crossProcess, | 39 bool crossProcess, |
| 40 bool sharedAddressSpace) | 40 bool sharedAddressSpace) |
| 41 : Task(parent) | 41 : CpuTask(parent) |
| 42 , fFlags(get_flags(crossProcess, sharedAddressSpace)) | 42 , fFlags(get_flags(crossProcess, sharedAddressSpace)) |
| 43 , fName(UnderJoin(parent.name().c_str(), get_name(fFlags))) | 43 , fName(UnderJoin(parent.name().c_str(), get_name(fFlags))) |
| 44 , fGM(gm) | 44 , fGM(gm) |
| 45 , fReference(reference) | 45 , fReference(reference) |
| 46 {} | 46 {} |
| 47 | 47 |
| 48 void PipeTask::draw() { | 48 void PipeTask::draw() { |
| 49 SkBitmap bitmap; | 49 SkBitmap bitmap; |
| 50 SetupBitmap(fReference.colorType(), fGM.get(), &bitmap); | 50 SetupBitmap(fReference.colorType(), fGM.get(), &bitmap); |
| 51 | 51 |
| (...skipping 23 matching lines...) Expand all Loading... |
| 75 return true; | 75 return true; |
| 76 } | 76 } |
| 77 if (fFlags == SkGPipeWriter::kCrossProcess_Flag && | 77 if (fFlags == SkGPipeWriter::kCrossProcess_Flag && |
| 78 fGM->getFlags() & skiagm::GM::kSkipPipeCrossProcess_Flag) { | 78 fGM->getFlags() & skiagm::GM::kSkipPipeCrossProcess_Flag) { |
| 79 return true; | 79 return true; |
| 80 } | 80 } |
| 81 return false; | 81 return false; |
| 82 } | 82 } |
| 83 | 83 |
| 84 } // namespace DM | 84 } // namespace DM |
| OLD | NEW |