OLD | NEW |
(Empty) | |
| 1 #ifndef DMReplayTask_DEFINED |
| 2 #define DMReplayTask_DEFINED |
| 3 |
| 4 #include "DMReporter.h" |
| 5 #include "DMTask.h" |
| 6 #include "DMTaskRunner.h" |
| 7 #include "SkBitmap.h" |
| 8 #include "SkString.h" |
| 9 #include "SkTemplates.h" |
| 10 #include "gm.h" |
| 11 #include "gm_expectations.h" |
| 12 |
| 13 // Records a GM through an SkPicture, draws it, and compares against the referen
ce checksum. |
| 14 |
| 15 namespace DM { |
| 16 |
| 17 class ReplayTask : public Task { |
| 18 |
| 19 public: |
| 20 ReplayTask(const char* name, |
| 21 const Task& parent, |
| 22 skiagm::GM*, |
| 23 skiagm::GmResultDigest reference, |
| 24 SkBitmap::Config); |
| 25 |
| 26 void draw(); |
| 27 bool usesGpu() const { return false; } |
| 28 bool shouldSkip() const; |
| 29 SkString name() const { return fName; } |
| 30 |
| 31 private: |
| 32 const SkString fName; |
| 33 SkAutoTDelete<skiagm::GM> fGM; |
| 34 const skiagm::GmResultDigest fReference; |
| 35 const SkBitmap::Config fConfig; |
| 36 }; |
| 37 |
| 38 } // namespace DM |
| 39 |
| 40 #endif // DMReplayTask_DEFINED |
OLD | NEW |