aboutsummaryrefslogtreecommitdiffhomepage
path: root/dm
diff options
context:
space:
mode:
authorGravatar mtklein <mtklein@chromium.org>2016-01-21 09:39:35 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2016-01-21 09:39:35 -0800
commitba6ada74e8658571c451f375b3e7736da83ea578 (patch)
treee26f755dada5ca249afc31685a3bc224e6243636 /dm
parentb864f5ffd89ab7daf6c66c4d2a65c68a2a723c47 (diff)
DM: dump images for task failures too (but not skipped tasks)
This will get us back to uploading things like serialize-8888 mismatches. BUG=skia:4806 GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1614443002 Review URL: https://codereview.chromium.org/1614443002
Diffstat (limited to 'dm')
-rw-r--r--dm/DM.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/dm/DM.cpp b/dm/DM.cpp
index 7302ebc270..25a1263788 100644
--- a/dm/DM.cpp
+++ b/dm/DM.cpp
@@ -815,7 +815,6 @@ struct Task {
start(task->sink.tag.c_str(), task->src.tag, task->src.options, name.c_str());
Error err = task->sink->draw(*task->src, &bitmap, &stream, &log);
if (!err.isEmpty()) {
- auto elapsed = now_ms() - timerStart;
if (err.isFatal()) {
fail(SkStringPrintf("%s %s %s %s: %s",
task->sink.tag.c_str(),
@@ -825,10 +824,11 @@ struct Task {
err.c_str()));
} else {
note.appendf(" (skipped: %s)", err.c_str());
+ auto elapsed = now_ms() - timerStart;
+ done(elapsed, task->sink.tag.c_str(), task->src.tag, task->src.options,
+ name, note, log);
+ return;
}
- done(elapsed, task->sink.tag.c_str(), task->src.tag, task->src.options,
- name, note, log);
- return;
}
// We're likely switching threads here, so we must capture by value, [=] or [foo,bar].
@@ -888,7 +888,8 @@ struct Task {
}
});
}
- done(now_ms()-timerStart, task->sink.tag.c_str(), task->src.tag.c_str(), task->src.options.c_str(),
+ auto elapsed = now_ms() - timerStart;
+ done(elapsed, task->sink.tag.c_str(), task->src.tag.c_str(), task->src.options.c_str(),
name, note, log);
}