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

Unified Diff: dm/DMChecksumTask.cpp

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/DMChecksumTask.h ('k') | dm/DMCpuTask.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dm/DMChecksumTask.cpp
diff --git a/dm/DMChecksumTask.cpp b/dm/DMChecksumTask.cpp
deleted file mode 100644
index 0d9dce7fd1f85ff28c6ad62072aa87bf5adf7fee..0000000000000000000000000000000000000000
--- a/dm/DMChecksumTask.cpp
+++ /dev/null
@@ -1,26 +0,0 @@
-#include "DMChecksumTask.h"
-#include "DMUtil.h"
-
-namespace DM {
-
-ChecksumTask::ChecksumTask(const Task& parent,
- skiagm::Expectations expectations,
- SkBitmap bitmap)
- : Task(parent)
- , fName(parent.name()) // Masquerade as parent so failures are attributed to it.
- , fExpectations(expectations)
- , fBitmap(bitmap)
- {}
-
-void ChecksumTask::draw() {
- if (fExpectations.ignoreFailure() || fExpectations.empty()) {
- return;
- }
-
- const skiagm::GmResultDigest digest(fBitmap);
- if (!fExpectations.match(digest)) {
- this->fail();
- }
-}
-
-} // namespace DM
« no previous file with comments | « dm/DMChecksumTask.h ('k') | dm/DMCpuTask.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698