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