Chromium Code Reviews| Index: dm/DMSKPTask.h |
| diff --git a/dm/DMSKPTask.h b/dm/DMSKPTask.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..f0ac4c77514c56b8384be3678b307bfbe3ebac5b |
| --- /dev/null |
| +++ b/dm/DMSKPTask.h |
| @@ -0,0 +1,30 @@ |
| +#ifndef DMSKPTask_DEFINED |
| +#define DMSKPTask_DEFINED |
| + |
| +#include "DMReporter.h" |
| +#include "DMTask.h" |
| +#include "DMTaskRunner.h" |
| +#include "SkPicture.h" |
| +#include "SkString.h" |
| +#include "SkTemplates.h" |
| + |
| +// Draws an SKP to a raster canvas, then compares it with some other modes. |
| + |
| +namespace DM { |
| + |
| +class SKPTask : public CpuTask { |
| +public: |
| + SKPTask(Reporter*, TaskRunner*, SkPicture*, SkString name); |
| + |
| + void draw() SK_OVERRIDE; |
| + bool shouldSkip() const SK_OVERRIDE { return false; } |
|
reed1
2014/05/14 12:40:11
nit: skia's convention has been to also add 'virtu
mtklein
2014/05/14 17:47:18
Done.
|
| + SkString name() const SK_OVERRIDE { return fName; } |
| + |
| +private: |
| + SkAutoTUnref<SkPicture> fPicture; |
| + const SkString fName; |
| +}; |
| + |
| +} // namespace DM |
| + |
| +#endif // DMSKPTask_DEFINED |