aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/skpinfo.cpp
diff options
context:
space:
mode:
authorGravatar robertphillips <robertphillips@google.com>2014-08-29 08:03:56 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2014-08-29 08:03:56 -0700
commita8d7f0b13cd4c6d773fcf055fe17db75d260fa05 (patch)
tree37e85b212ccd5761b9a736282e75ebf838840798 /tools/skpinfo.cpp
parent77d724c07878b21602e96e095f6a446c429a079a (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.cpp12
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);