diff options
author | commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-10-29 15:02:17 +0000 |
---|---|---|
committer | commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-10-29 15:02:17 +0000 |
commit | 0caa68ab2fde5e511c01b9119d2d222b61c810e9 (patch) | |
tree | 3fd350062f0e70bba2809d1fc0c65e7e4a3d9a75 /dm | |
parent | 9ef0426e7c126f6ad6ba833d4543b92a197c95af (diff) |
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
Diffstat (limited to 'dm')
-rw-r--r-- | dm/DMReporter.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/dm/DMReporter.cpp b/dm/DMReporter.cpp index 3d9dae5862..0e01d71f20 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(); |