diff options
author | robertphillips <robertphillips@google.com> | 2014-08-29 08:03:56 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-08-29 08:03:56 -0700 |
commit | a8d7f0b13cd4c6d773fcf055fe17db75d260fa05 (patch) | |
tree | 37e85b212ccd5761b9a736282e75ebf838840798 /tools/skpinfo.cpp | |
parent | 77d724c07878b21602e96e095f6a446c429a079a (diff) |
Try out scalar picture sizes
This paves the way for removing the 'fTile' parameter from SkPictureShader (although that should be a different CL). If we like this we could also move to providing an entire cull SkRect.
R=reed@google.com, mtklein@google.com, fmalita@google.com, fmalita@chromium.org
Author: robertphillips@google.com
Review URL: https://codereview.chromium.org/513983002
Diffstat (limited to 'tools/skpinfo.cpp')
-rw-r--r-- | tools/skpinfo.cpp | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/tools/skpinfo.cpp b/tools/skpinfo.cpp index 1f7b465ba8..55229650f3 100644 --- a/tools/skpinfo.cpp +++ b/tools/skpinfo.cpp @@ -12,8 +12,7 @@ DEFINE_string2(input, i, "", "skp on which to report"); DEFINE_bool2(version, v, true, "version"); -DEFINE_bool2(width, w, true, "width"); -DEFINE_bool2(height, h, true, "height"); +DEFINE_bool2(cullRect, c, true, "cullRect"); DEFINE_bool2(flags, f, true, "flags"); DEFINE_bool2(tags, t, true, "tags"); DEFINE_bool2(quiet, q, false, "quiet"); @@ -59,11 +58,10 @@ int tool_main(int argc, char** argv) { if (FLAGS_version && !FLAGS_quiet) { SkDebugf("Version: %d\n", info.fVersion); } - if (FLAGS_width && !FLAGS_quiet) { - SkDebugf("Width: %d\n", info.fWidth); - } - if (FLAGS_height && !FLAGS_quiet) { - SkDebugf("Height: %d\n", info.fHeight); + if (FLAGS_cullRect && !FLAGS_quiet) { + SkDebugf("Cull Rect: %f,%f,%f,%f\n", + info.fCullRect.fLeft, info.fCullRect.fTop, + info.fCullRect.fRight, info.fCullRect.fBottom); } if (FLAGS_flags && !FLAGS_quiet) { SkDebugf("Flags: 0x%x\n", info.fFlags); |