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

Side by Side Diff: dm/DMReplayTask.h

Issue 32613003: DM: add --serialize (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: no-find-copies 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
« no previous file with comments | « dm/DMGpuTask.cpp ('k') | dm/DMReplayTask.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #ifndef DMReplayTask_DEFINED 1 #ifndef DMReplayTask_DEFINED
2 #define DMReplayTask_DEFINED 2 #define DMReplayTask_DEFINED
3 3
4 #include "DMReporter.h"
5 #include "DMTask.h" 4 #include "DMTask.h"
6 #include "DMTaskRunner.h"
7 #include "SkBitmap.h" 5 #include "SkBitmap.h"
8 #include "SkString.h" 6 #include "SkString.h"
9 #include "SkTemplates.h" 7 #include "SkTemplates.h"
10 #include "gm.h" 8 #include "gm.h"
11 #include "gm_expectations.h"
12 9
13 // Records a GM through an SkPicture, draws it, and compares against the referen ce bitmap. 10 // Records a GM through an SkPicture, draws it, and compares against the referen ce bitmap.
14 11
15 namespace DM { 12 namespace DM {
16 13
17 class ReplayTask : public Task { 14 class ReplayTask : public Task {
18 15
19 public: 16 public:
20 ReplayTask(const char* name, 17 ReplayTask(const Task& parent,
21 const Task& parent,
22 skiagm::GM*, 18 skiagm::GM*,
23 SkBitmap reference); 19 SkBitmap reference);
24 20
25 virtual void draw() SK_OVERRIDE; 21 virtual void draw() SK_OVERRIDE;
26 virtual bool usesGpu() const SK_OVERRIDE { return false; } 22 virtual bool usesGpu() const SK_OVERRIDE { return false; }
27 virtual bool shouldSkip() const SK_OVERRIDE; 23 virtual bool shouldSkip() const SK_OVERRIDE;
28 virtual SkString name() const SK_OVERRIDE { return fName; } 24 virtual SkString name() const SK_OVERRIDE { return fName; }
29 25
30 private: 26 private:
31 const SkString fName; 27 const SkString fName;
32 SkAutoTDelete<skiagm::GM> fGM; 28 SkAutoTDelete<skiagm::GM> fGM;
33 const SkBitmap fReference; 29 const SkBitmap fReference;
34 }; 30 };
35 31
36 } // namespace DM 32 } // namespace DM
37 33
38 #endif // DMReplayTask_DEFINED 34 #endif // DMReplayTask_DEFINED
OLDNEW
« no previous file with comments | « dm/DMGpuTask.cpp ('k') | dm/DMReplayTask.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698