DM: add --quiet
This has been handy when tossing in other SkDebugf's.
BUG=
R=bsalomon@google.com
Author: mtklein@google.com
Review URL: https://codereview.chromium.org/49323007
git-svn-id: http://skia.googlecode.com/svn/trunk@11998 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/dm/DMReporter.cpp b/dm/DMReporter.cpp
index 3d9dae5..0e01d71 100644
--- a/dm/DMReporter.cpp
+++ b/dm/DMReporter.cpp
@@ -1,8 +1,16 @@
#include "DMReporter.h"
+#include "SkCommandLineFlags.h"
+
+DEFINE_bool(quiet, false, "If true, don't print status updates.");
+
namespace DM {
void Reporter::updateStatusLine() const {
+ if (FLAGS_quiet) {
+ return;
+ }
+
SkString status;
status.printf("\r\033[K%d / %d", this->finished(), this->started());
const int failed = this->failed();