1 #ifndef DMQuiltTask_DEFINED
2 #define DMQuiltTask_DEFINED
7 #include "SkTemplates.h"
10 // Records a GM through an SkPicture, draws it in tiles, and compares against the reference bitmap.
14 class QuiltTask : public CpuTask {
27 QuiltTask(const Task& parent, // QuiltTask must be a child task. Pass its parent here.
28 skiagm::GM*, // GM to run through a picture. Takes ownership.
29 SkBitmap reference, // Bitmap to compare picture replay results to.
32 virtual void draw() SK_OVERRIDE;
33 virtual bool shouldSkip() const SK_OVERRIDE;
34 virtual SkString name() const SK_OVERRIDE { return fName; }
38 const Backend fBackend;
40 SkAutoTDelete<skiagm::GM> fGM;
41 const SkBitmap fReference;
46 #endif // DMReplayTask_DEFINED