diff options
author | robertphillips <robertphillips@google.com> | 2016-04-19 09:29:01 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-04-19 09:29:01 -0700 |
commit | 44583122acff3251f48a98c71fa3180275e8437e (patch) | |
tree | 5072b42b83b43891607a6101392a729820ee93ef /tools | |
parent | 3c579dcff81dab48a5fb3801d7a34f9c00256ec4 (diff) |
Make skpinfo more human friendly
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1901713004
Review URL: https://codereview.chromium.org/1901713004
Diffstat (limited to 'tools')
-rw-r--r-- | tools/skpinfo.cpp | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/tools/skpinfo.cpp b/tools/skpinfo.cpp index 4b65cb8a8c..dd5fd75f19 100644 --- a/tools/skpinfo.cpp +++ b/tools/skpinfo.cpp @@ -65,7 +65,26 @@ int tool_main(int argc, char** argv) { info.fCullRect.fRight, info.fCullRect.fBottom); } if (FLAGS_flags && !FLAGS_quiet) { - SkDebugf("Flags: 0x%x\n", info.fFlags); + SkDebugf("Flags: "); + bool needsSeparator = false; + if (info.fFlags & SkPictInfo::kCrossProcess_Flag) { + SkDebugf("kCrossProcess"); + needsSeparator = true; + } + if (info.fFlags & SkPictInfo::kScalarIsFloat_Flag) { + if (needsSeparator) { + SkDebugf("|"); + } + SkDebugf("kScalarIsFloat"); + needsSeparator = true; + } + if (info.fFlags & SkPictInfo::kPtrIs64Bit_Flag) { + if (needsSeparator) { + SkDebugf("|"); + } + SkDebugf("kPtrIs64Bit"); + } + SkDebugf("\n"); } if (!stream.readBool()) { |