OLD | NEW |
1 #ifndef DMChecksumTask_DEFINED | 1 #ifndef DMExpectationsTask_DEFINED |
2 #define DMChecksumTask_DEFINED | 2 #define DMExpectationsTask_DEFINED |
3 | 3 |
| 4 #include "DMExpectations.h" |
4 #include "DMTask.h" | 5 #include "DMTask.h" |
5 #include "SkBitmap.h" | 6 #include "SkBitmap.h" |
6 #include "SkString.h" | 7 #include "SkString.h" |
7 #include "gm_expectations.h" | |
8 | 8 |
9 namespace DM { | 9 namespace DM { |
10 | 10 |
11 // ChecksumTask compares an SkBitmap against some Expectations. | 11 // ExpectationsTask compares an SkBitmap against some Expectations. |
12 // Moving this off the GPU threadpool is a nice (~30%) runtime win. | 12 // Moving this off the GPU threadpool is a nice (~30%) runtime win. |
13 class ChecksumTask : public Task { | 13 class ExpectationsTask : public Task { |
14 public: | 14 public: |
15 ChecksumTask(const Task& parent, skiagm::Expectations, SkBitmap); | 15 ExpectationsTask(const Task& parent, const Expectations&, SkBitmap); |
16 | 16 |
17 virtual void draw() SK_OVERRIDE; | 17 virtual void draw() SK_OVERRIDE; |
18 virtual bool usesGpu() const SK_OVERRIDE { return false; } | 18 virtual bool usesGpu() const SK_OVERRIDE { return false; } |
19 virtual bool shouldSkip() const SK_OVERRIDE { return false; } | 19 virtual bool shouldSkip() const SK_OVERRIDE { return false; } |
20 virtual SkString name() const SK_OVERRIDE { return fName; } | 20 virtual SkString name() const SK_OVERRIDE { return fName; } |
21 | 21 |
22 private: | 22 private: |
23 const SkString fName; | 23 const SkString fName; |
24 const skiagm::Expectations fExpectations; | 24 const Expectations& fExpectations; |
25 const SkBitmap fBitmap; | 25 const SkBitmap fBitmap; |
26 }; | 26 }; |
27 | 27 |
28 } // namespace DM | 28 } // namespace DM |
29 | 29 |
30 #endif // DMChecksumTask_DEFINED | 30 #endif // DMExpectationsTask_DEFINED |
OLD | NEW |