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

Unified Diff: dm/DMCpuTask.cpp

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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « dm/DMComparisonTask.cpp ('k') | dm/DMReplayTask.h » ('j') | dm/DMReplayTask.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dm/DMCpuTask.cpp
diff --git a/dm/DMCpuTask.cpp b/dm/DMCpuTask.cpp
index 544f73c4c1b51b201f0b201b3ce93d50057d1342..14f661ac387f0e2dc23956376bf6bb9b64726947 100644
--- a/dm/DMCpuTask.cpp
+++ b/dm/DMCpuTask.cpp
@@ -33,14 +33,13 @@ void CpuTask::draw() {
fGM->draw(&canvas);
canvas.flush();
- const skiagm::GmResultDigest digest(bitmap);
- if (!meetsExpectations(fExpectations, digest)) {
+ if (!meetsExpectations(fExpectations, bitmap)) {
this->fail();
}
if (FLAGS_replay) {
this->spawnChild(SkNEW_ARGS(ReplayTask,
- ("replay", *this, fGMFactory(NULL), digest, fConfig)));
+ ("replay", *this, fGMFactory(NULL), bitmap)));
}
}
« no previous file with comments | « dm/DMComparisonTask.cpp ('k') | dm/DMReplayTask.h » ('j') | dm/DMReplayTask.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698