aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/skpbench
diff options
context:
space:
mode:
authorGravatar Robert Phillips <robertphillips@google.com>2018-06-26 08:49:38 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-06-26 15:28:12 +0000
commitd5506cb888858bd19fa54be50714a8d661cedf33 (patch)
treef8fcc0dbe3dd0b7630b2f0c22806dfd594a4b3a2 /tools/skpbench
parent665949a3ecf1fbe188a8387aa9a3db99432f82ec (diff)
Add --gpuThreads support to skpbench.py (take 2)
Change-Id: Ie946ff339c4e04bb866545ad60c2ab77bae85417 Reviewed-on: https://skia-review.googlesource.com/136175 Reviewed-by: Chris Dalton <csmartdalton@google.com> Commit-Queue: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'tools/skpbench')
-rwxr-xr-xtools/skpbench/skpbench.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/skpbench/skpbench.py b/tools/skpbench/skpbench.py
index a9ec618ab2..0477db2227 100755
--- a/tools/skpbench/skpbench.py
+++ b/tools/skpbench/skpbench.py
@@ -75,6 +75,10 @@ __argparse.add_argument('--ddlTilingWidthHeight',
type=int, default=0, help="number of tiles along one edge when in DDL mode")
__argparse.add_argument('--ddlRecordTime',
action='store_true', help="report just the cpu time spent recording DDLs")
+__argparse.add_argument('--gpuThreads',
+ type=int, default=-1,
+ help="Create this many extra threads to assist with GPU work, including"
+ " software path rendering. Defaults to two.")
__argparse.add_argument('skps',
nargs='+',
help=".skp files or directories to expand for .skp files")
@@ -129,6 +133,8 @@ class SKPBench:
ARGV.extend(['--pr'] + re.split(r'[ ,]', FLAGS.pr))
if FLAGS.nocache:
ARGV.extend(['--cachePathMasks', 'false'])
+ if FLAGS.gpuThreads != -1:
+ ARGV.extend(['--gpuThreads', str(FLAGS.gpuThreads)])
# DDL parameters
if FLAGS.ddl: