diff options
author | Robert Phillips <robertphillips@google.com> | 2018-06-13 14:03:05 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-06-13 18:41:46 +0000 |
commit | 2f14f21acbd291933e13e8eef822fd222d20c677 (patch) | |
tree | b897206eefd2cbee67a969199bf5a983b6d90e62 /tools | |
parent | f18c756360bde970c95a9ca5a47f8e6e12a6ba87 (diff) |
Add --gpuThreads support to skpbench.py
Change-Id: Ib5c7ed0fd28ebf734168bc0377d643bbddf70e65
Reviewed-on: https://skia-review.googlesource.com/134601
Reviewed-by: Greg Daniel <egdaniel@google.com>
Commit-Queue: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/skpbench/skpbench.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/skpbench/skpbench.py b/tools/skpbench/skpbench.py index a9ec618ab2..1db66af801 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=2, + 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: + ARGV.extent(['--gpuThreads', str(FLAGS.gpuThreads)]) # DDL parameters if FLAGS.ddl: |