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
This commit is contained in:
parent
9ef0426e7c
commit
0caa68ab2f
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user