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

Unified Diff: dm/DMExpectationsTask.h

Issue 108963002: DM: Add support for reading a directory of images with --expectations (-r). (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: comments etc 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « dm/DMExpectations.h ('k') | dm/DMExpectationsTask.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dm/DMExpectationsTask.h
diff --git a/dm/DMChecksumTask.h b/dm/DMExpectationsTask.h
similarity index 57%
rename from dm/DMChecksumTask.h
rename to dm/DMExpectationsTask.h
index b0afac9467be2365e20ffb854a8cf010af1535b6..cf76fc8bdf2b61b35958df854031577269383135 100644
--- a/dm/DMChecksumTask.h
+++ b/dm/DMExpectationsTask.h
@@ -1,18 +1,18 @@
-#ifndef DMChecksumTask_DEFINED
-#define DMChecksumTask_DEFINED
+#ifndef DMExpectationsTask_DEFINED
+#define DMExpectationsTask_DEFINED
+#include "DMExpectations.h"
#include "DMTask.h"
#include "SkBitmap.h"
#include "SkString.h"
-#include "gm_expectations.h"
namespace DM {
-// ChecksumTask compares an SkBitmap against some Expectations.
+// ExpectationsTask compares an SkBitmap against some Expectations.
// Moving this off the GPU threadpool is a nice (~30%) runtime win.
-class ChecksumTask : public Task {
+class ExpectationsTask : public Task {
public:
- ChecksumTask(const Task& parent, skiagm::Expectations, SkBitmap);
+ ExpectationsTask(const Task& parent, const Expectations&, SkBitmap);
virtual void draw() SK_OVERRIDE;
virtual bool usesGpu() const SK_OVERRIDE { return false; }
@@ -21,10 +21,10 @@ public:
private:
const SkString fName;
- const skiagm::Expectations fExpectations;
+ const Expectations& fExpectations;
const SkBitmap fBitmap;
};
} // namespace DM
-#endif // DMChecksumTask_DEFINED
+#endif // DMExpectationsTask_DEFINED
« 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