Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(273)

Side by Side Diff: dm/DMChecksumTask.h

Issue 108963002: DM: Add support for reading a directory of images with --expectations (-r). (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: comments etc Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « dm/DM.cpp ('k') | dm/DMChecksumTask.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 #ifndef DMChecksumTask_DEFINED
2 #define DMChecksumTask_DEFINED
3
4 #include "DMTask.h"
5 #include "SkBitmap.h"
6 #include "SkString.h"
7 #include "gm_expectations.h"
8
9 namespace DM {
10
11 // ChecksumTask compares an SkBitmap against some Expectations.
12 // Moving this off the GPU threadpool is a nice (~30%) runtime win.
13 class ChecksumTask : public Task {
14 public:
15 ChecksumTask(const Task& parent, skiagm::Expectations, SkBitmap);
16
17 virtual void draw() SK_OVERRIDE;
18 virtual bool usesGpu() const SK_OVERRIDE { return false; }
19 virtual bool shouldSkip() const SK_OVERRIDE { return false; }
20 virtual SkString name() const SK_OVERRIDE { return fName; }
21
22 private:
23 const SkString fName;
24 const skiagm::Expectations fExpectations;
25 const SkBitmap fBitmap;
26 };
27
28 } // namespace DM
29
30 #endif // DMChecksumTask_DEFINED
OLDNEW
« no previous file with comments | « dm/DM.cpp ('k') | dm/DMChecksumTask.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698