Index: dm/DMReporter.cpp |
diff --git a/dm/DMReporter.cpp b/dm/DMReporter.cpp |
index 1ff64c57cc5f56ded6207d0de5dcdfc27219b683..0fd83e5bb656a1406cd6842a55185a4df8b96f45 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 @@ |
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 { |