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

Side by Side Diff: dm/DMReplayTask.h

Issue 27476007: DM: duh, don't calculate digests unless we're going to look at them. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: sync and merge 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/DMCpuTask.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" 4 #include "DMReporter.h"
5 #include "DMTask.h" 5 #include "DMTask.h"
6 #include "DMTaskRunner.h" 6 #include "DMTaskRunner.h"
7 #include "SkBitmap.h" 7 #include "SkBitmap.h"
8 #include "SkString.h" 8 #include "SkString.h"
9 #include "SkTemplates.h" 9 #include "SkTemplates.h"
10 #include "gm.h" 10 #include "gm.h"
11 #include "gm_expectations.h" 11 #include "gm_expectations.h"
12 12
13 // Records a GM through an SkPicture, draws it, and compares against the referen ce checksum. 13 // Records a GM through an SkPicture, draws it, and compares against the referen ce bitmap.
epoger 2013/10/17 16:14:01 The question is, will DM have the reference bitmap
14 14
15 namespace DM { 15 namespace DM {
16 16
17 class ReplayTask : public Task { 17 class ReplayTask : public Task {
18 18
19 public: 19 public:
20 ReplayTask(const char* name, 20 ReplayTask(const char* name,
21 const Task& parent, 21 const Task& parent,
22 skiagm::GM*, 22 skiagm::GM*,
23 skiagm::GmResultDigest reference, 23 SkBitmap reference);
24 SkBitmap::Config);
25 24
26 virtual void draw() SK_OVERRIDE; 25 virtual void draw() SK_OVERRIDE;
27 virtual bool usesGpu() const SK_OVERRIDE { return false; } 26 virtual bool usesGpu() const SK_OVERRIDE { return false; }
28 virtual bool shouldSkip() const SK_OVERRIDE; 27 virtual bool shouldSkip() const SK_OVERRIDE;
29 virtual SkString name() const SK_OVERRIDE { return fName; } 28 virtual SkString name() const SK_OVERRIDE { return fName; }
30 29
31 private: 30 private:
32 const SkString fName; 31 const SkString fName;
33 SkAutoTDelete<skiagm::GM> fGM; 32 SkAutoTDelete<skiagm::GM> fGM;
34 const skiagm::GmResultDigest fReference; 33 const SkBitmap fReference;
35 const SkBitmap::Config fConfig;
36 }; 34 };
37 35
38 } // namespace DM 36 } // namespace DM
39 37
40 #endif // DMReplayTask_DEFINED 38 #endif // DMReplayTask_DEFINED
OLDNEW
« no previous file with comments | « dm/DMCpuTask.cpp ('k') | dm/DMReplayTask.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698