1 #ifndef DMExpectationsTask_DEFINED
2 #define DMExpectationsTask_DEFINED
4 #include "DMExpectations.h"
11 // ExpectationsTask compares an SkBitmap against some Expectations.
12 // Moving this off the GPU threadpool is a nice (~30%) runtime win.
13 class ExpectationsTask : public CpuTask {
15 ExpectationsTask(const Task& parent, const Expectations&, SkBitmap);
17 virtual void draw() SK_OVERRIDE;
18 virtual bool shouldSkip() const SK_OVERRIDE { return false; }
19 virtual SkString name() const SK_OVERRIDE { return fName; }
23 const Expectations& fExpectations;
24 const SkBitmap fBitmap;
29 #endif // DMExpectationsTask_DEFINED