From a8d7f0b13cd4c6d773fcf055fe17db75d260fa05 Mon Sep 17 00:00:00 2001 From: robertphillips Date: Fri, 29 Aug 2014 08:03:56 -0700 Subject: 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 --- tools/skpinfo.cpp | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'tools/skpinfo.cpp') 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); -- cgit v1.2.3