aboutsummaryrefslogtreecommitdiffhomepage
path: root/dm/DMReporter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'dm/DMReporter.cpp')
-rw-r--r--dm/DMReporter.cpp16
1 files changed, 5 insertions, 11 deletions
diff --git a/dm/DMReporter.cpp b/dm/DMReporter.cpp
index 1ff64c57cc..0fd83e5bb6 100644
--- a/dm/DMReporter.cpp
+++ b/dm/DMReporter.cpp
@@ -3,27 +3,21 @@
#include "SkCommandLineFlags.h"
#include "OverwriteLine.h"
-DEFINE_bool2(quiet, q, false, "If true, don't print status updates.");
-DEFINE_bool2(verbose, v, false, "If true, print status updates one-per-line.");
+DEFINE_bool(quiet, false, "If true, don't print status updates.");
namespace DM {
-void Reporter::finish(SkString name) {
- sk_atomic_inc(&fFinished);
-
+void Reporter::updateStatusLine() const {
if (FLAGS_quiet) {
return;
}
SkString status;
- status.printf("%s%d tasks left",
- FLAGS_verbose ? "\n" : kSkOverwriteLine,
- this->started() - this->finished());
+ status.printf("%s%d tasks left", kSkOverwriteLine, this->started() - this->finished());
const int failed = this->failed();
if (failed > 0) {
status.appendf(", %d failed", failed);
}
- status.appendf("\t[%s done]", name.c_str());
SkDebugf(status.c_str());
}
@@ -32,9 +26,9 @@ int32_t Reporter::failed() const {
return fFailures.count();
}
-void Reporter::fail(SkString msg) {
+void Reporter::fail(SkString name) {
SkAutoMutexAcquire writer(&fMutex);
- fFailures.push_back(msg);
+ fFailures.push_back(name);
}
void Reporter::getFailures(SkTArray<SkString>* failures) const {