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

Side by Side Diff: dm/DMExpectationsTask.h

Issue 553583004: Remove expectations / -r from DM entirely. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rebase Created 6 years, 3 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
« no previous file with comments | « dm/DMExpectations.h ('k') | dm/DMExpectationsTask.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 DMExpectationsTask_DEFINED
2 #define DMExpectationsTask_DEFINED
3
4 #include "DMExpectations.h"
5 #include "DMTask.h"
6 #include "SkBitmap.h"
7 #include "SkString.h"
8
9 namespace DM {
10
11 // ExpectationsTask compares an SkBitmap against some Expectations.
12 // Moving this off the GPU threadpool is a nice (~30%) runtime win.
13 class ExpectationsTask : public CpuTask {
14 public:
15 ExpectationsTask(const Task& parent, const Expectations&, SkBitmap);
16
17 virtual void draw() SK_OVERRIDE;
18 virtual bool shouldSkip() const SK_OVERRIDE { return false; }
19 virtual SkString name() const SK_OVERRIDE { return fName; }
20
21 private:
22 const SkString fName;
23 const Expectations& fExpectations;
24 const SkBitmap fBitmap;
25 };
26
27 } // namespace DM
28
29 #endif // DMExpectationsTask_DEFINED
OLDNEW
« no previous file with comments | « dm/DMExpectations.h ('k') | dm/DMExpectationsTask.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698