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

Side by Side Diff: dm/DMComparisonTask.h

Issue 88543002: DM: some refactoring (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: 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
OLDNEW
(Empty)
1 #ifndef DMComparisonTask_DEFINED
2 #define DMComparisonTask_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 // We use ComparisonTask to move CPU-bound comparison work of GpuTasks back to
12 // the main thread pool, where we probably have more threads available.
13
14 class ComparisonTask : public Task {
15 public:
16 ComparisonTask(const Task& parent, skiagm::Expectations, SkBitmap);
17
18 virtual void draw() SK_OVERRIDE;
19 virtual bool usesGpu() const SK_OVERRIDE { return false; }
20 virtual bool shouldSkip() const SK_OVERRIDE { return false; }
21 virtual SkString name() const SK_OVERRIDE { return fName; }
22
23 private:
24 const SkString fName;
25 const skiagm::Expectations fExpectations;
26 const SkBitmap fBitmap;
27 };
28
29 } // namespace DM
30
31 #endif // DMComparisonTask_DEFINED
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698