Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(337)

Unified Diff: tools/skpinfo.cpp

Issue 1901713004: Make skpinfo more human friendly (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/skpinfo.cpp
diff --git a/tools/skpinfo.cpp b/tools/skpinfo.cpp
index 4b65cb8a8c692aacc9fa6f2dbb04a9223925dedb..dd5fd75f192a3448b9d515f43144c45b168f25eb 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()) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698