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

Side by Side Diff: dm/DMReplayTask.h

Issue 22839016: Skeleton of DM (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: missed one Created 7 years, 2 months 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
OLDNEW
(Empty)
1 #ifndef DMReplayTask_DEFINED
2 #define DMReplayTask_DEFINED
3
4 #include "DMReporter.h"
5 #include "DMTask.h"
6 #include "DMTaskRunner.h"
7 #include "SkBitmap.h"
8 #include "SkString.h"
9 #include "SkTemplates.h"
10 #include "gm.h"
11 #include "gm_expectations.h"
12
13 // Records a GM through an SkPicture, draws it, and compares against the referen ce checksum.
14
15 namespace DM {
16
17 class ReplayTask : public Task {
18
19 public:
20 ReplayTask(const char* name,
21 const Task& parent,
22 skiagm::GM*,
23 skiagm::GmResultDigest reference,
24 SkBitmap::Config);
25
26 void draw();
27 bool usesGpu() const { return false; }
28 bool shouldSkip() const;
29 SkString name() const { return fName; }
30
31 private:
32 const SkString fName;
33 SkAutoTDelete<skiagm::GM> fGM;
34 const skiagm::GmResultDigest fReference;
35 const SkBitmap::Config fConfig;
36 };
37
38 } // namespace DM
39
40 #endif // DMReplayTask_DEFINED
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698