aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/skpbench
diff options
context:
space:
mode:
authorGravatar Chris Dalton <csmartdalton@google.com>2017-10-19 14:11:58 -0600
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-10-20 16:42:25 +0000
commitacb549f0baff991f41d9caca34f56c359e17014c (patch)
tree7eee06e003cea6c926b0b84f9ae2f8f3f3aa8fef /tools/skpbench
parentfe3e858e751609c3a9cbf7ad710ed415ea7213fc (diff)
skpbench: add arguments for path renderer and path cache
Bug: skia: Change-Id: If31d040b0560c23bfad31e06ef247428bf5bdb6d Reviewed-on: https://skia-review.googlesource.com/62106 Reviewed-by: Kevin Lubick <kjlubick@google.com> Commit-Queue: Chris Dalton <csmartdalton@google.com>
Diffstat (limited to 'tools/skpbench')
-rwxr-xr-xtools/skpbench/skpbench.py14
1 files changed, 12 insertions, 2 deletions
diff --git a/tools/skpbench/skpbench.py b/tools/skpbench/skpbench.py
index 6b4c555a76..e9c7ec0f60 100755
--- a/tools/skpbench/skpbench.py
+++ b/tools/skpbench/skpbench.py
@@ -33,6 +33,8 @@ __argparse.add_argument('skpbench',
help="path to the skpbench binary")
__argparse.add_argument('--adb',
action='store_true', help="execute skpbench over adb")
+__argparse.add_argument('--adb_binary', default='adb',
+ help="The name of the adb binary to use.")
__argparse.add_argument('-s', '--device-serial',
help="if using adb, ID of the specific device to target "
"(only required if more than 1 device is attached)")
@@ -54,6 +56,12 @@ __argparse.add_argument('--gpu',
help="perform timing on the gpu clock instead of cpu (gpu work only)")
__argparse.add_argument('--fps',
action='store_true', help="use fps instead of ms")
+__argparse.add_argument('--pr',
+ help="comma- or space-separated list of GPU path renderers, including: "
+ "[[~]all [~]default [~]dashline [~]nvpr [~]msaa [~]aaconvex "
+ "[~]aalinearizing [~]small [~]tess]")
+__argparse.add_argument('--nocache',
+ action='store_true', help="disable caching of path mask textures")
__argparse.add_argument('-c', '--config',
default='gl', help="comma- or space-separated list of GPU configs")
__argparse.add_argument('-a', '--resultsfile',
@@ -61,8 +69,6 @@ __argparse.add_argument('-a', '--resultsfile',
__argparse.add_argument('skps',
nargs='+',
help=".skp files or directories to expand for .skp files")
-__argparse.add_argument('--adb_binary', default='adb',
- help="The name of the adb binary to use.")
FLAGS = __argparse.parse_args()
if FLAGS.adb:
@@ -110,6 +116,10 @@ class SKPBench:
ARGV.extend(['--gpuClock', 'true'])
if FLAGS.fps:
ARGV.extend(['--fps', 'true'])
+ if FLAGS.pr:
+ ARGV.extend(['--pr'] + re.split(r'[ ,]', FLAGS.pr))
+ if FLAGS.nocache:
+ ARGV.extend(['--cachePathMasks', 'false'])
if FLAGS.adb:
if FLAGS.device_serial is None:
ARGV[:0] = [FLAGS.adb_binary, 'shell']