aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Robert Phillips <robertphillips@google.com>2018-05-31 08:12:33 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-05-31 13:17:43 +0000
commit9619c49942fece68f2830ebdacf706dd598ffe88 (patch)
tree1481d3949e07a422d87c07302a385793b4e7a85a
parent89ad31e97cc886dc6417d9ee2ec79998c1a09912 (diff)
Add DDL parameters to skpbench.py
This needs to land before https://skia-review.googlesource.com/c/skia/+/130923 (Add a DDL Skpbench bot) Change-Id: I50a6308350fd62c696eedd0fdccd42dd7dfb0d53 Reviewed-on: https://skia-review.googlesource.com/131102 Commit-Queue: Robert Phillips <robertphillips@google.com> Reviewed-by: Eric Boren <borenet@google.com>
-rwxr-xr-xtools/skpbench/skpbench.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/tools/skpbench/skpbench.py b/tools/skpbench/skpbench.py
index 243beaf795..bb88a76a1d 100755
--- a/tools/skpbench/skpbench.py
+++ b/tools/skpbench/skpbench.py
@@ -66,6 +66,13 @@ __argparse.add_argument('-c', '--config',
default='gl', help="comma- or space-separated list of GPU configs")
__argparse.add_argument('-a', '--resultsfile',
help="optional file to append results into")
+__argparse.add_argument('--ddl',
+ action='store_true', help="record the skp into DDLs before rendering")
+__argparse.add_argument('--ddlNumAdditionalThreads',
+ type=int, default=0,
+ help="number of DDL recording threads in addition to main one")
+__argparse.add_argument('--ddlTilingWidthHeight',
+ type=int, default=0, help="number of tiles along one edge when in DDL mode")
__argparse.add_argument('skps',
nargs='+',
help=".skp files or directories to expand for .skp files")
@@ -120,6 +127,16 @@ class SKPBench:
ARGV.extend(['--pr'] + re.split(r'[ ,]', FLAGS.pr))
if FLAGS.nocache:
ARGV.extend(['--cachePathMasks', 'false'])
+
+ # DDL parameters
+ if FLAGS.ddl:
+ ARGV.extend(['--ddl', 'true'])
+ if FLAGS.ddlNumAdditionalThreads:
+ ARGV.extend(['--ddlNumAdditionalThreads',
+ str(FLAGS.ddlNumAdditionalThreads)])
+ if FLAGS.ddlTilingWidthHeight:
+ ARGV.extend(['--ddlTilingWidthHeight', str(FLAGS.ddlTilingWidthHeight)])
+
if FLAGS.adb:
if FLAGS.device_serial is None:
ARGV[:0] = [FLAGS.adb_binary, 'shell']