| OLD | NEW |
| 1 # Copyright 2016 The Chromium Authors. All rights reserved. | 1 # Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 | 5 |
| 6 # Recipe module for Skia Swarming perf. | 6 # Recipe module for Skia Swarming perf. |
| 7 | 7 |
| 8 | 8 |
| 9 DEPS = [ | 9 DEPS = [ |
| 10 'build/file', | 10 'build/file', |
| (...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 181 ]) | 181 ]) |
| 182 | 182 |
| 183 target = 'nanobench' | 183 target = 'nanobench' |
| 184 if 'VisualBench' in api.vars.builder_name: | 184 if 'VisualBench' in api.vars.builder_name: |
| 185 target = 'visualbench' | 185 target = 'visualbench' |
| 186 args = [ | 186 args = [ |
| 187 target, | 187 target, |
| 188 '--undefok', # This helps branches that may not know new flags. | 188 '--undefok', # This helps branches that may not know new flags. |
| 189 '-i', api.flavor.device_dirs.resource_dir, | 189 '-i', api.flavor.device_dirs.resource_dir, |
| 190 '--skps', api.flavor.device_dirs.skp_dir, | 190 '--skps', api.flavor.device_dirs.skp_dir, |
| 191 '--svgs', api.flavor.device_dirs.svg_dir, |
| 191 '--images', api.flavor.device_path_join( | 192 '--images', api.flavor.device_path_join( |
| 192 api.flavor.device_dirs.images_dir, 'nanobench'), | 193 api.flavor.device_dirs.images_dir, 'nanobench'), |
| 193 ] | 194 ] |
| 194 | 195 |
| 195 skip_flag = None | 196 skip_flag = None |
| 196 if api.vars.builder_cfg.get('cpu_or_gpu') == 'CPU': | 197 if api.vars.builder_cfg.get('cpu_or_gpu') == 'CPU': |
| 197 skip_flag = '--nogpu' | 198 skip_flag = '--nogpu' |
| 198 elif api.vars.builder_cfg.get('cpu_or_gpu') == 'GPU': | 199 elif api.vars.builder_cfg.get('cpu_or_gpu') == 'GPU': |
| 199 skip_flag = '--nocpu' | 200 skip_flag = '--nocpu' |
| 200 if skip_flag: | 201 if skip_flag: |
| (...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 347 buildername='Perf-Ubuntu-GCC-ShuttleA-GPU-GTX550Ti-x86_64-Release-' + | 348 buildername='Perf-Ubuntu-GCC-ShuttleA-GPU-GTX550Ti-x86_64-Release-' + |
| 348 'Valgrind-Trybot', | 349 'Valgrind-Trybot', |
| 349 mastername='client.skia', | 350 mastername='client.skia', |
| 350 slavename='skiabot-linux-swarm-000', | 351 slavename='skiabot-linux-swarm-000', |
| 351 buildnumber=5, | 352 buildnumber=5, |
| 352 path_config='kitchen', | 353 path_config='kitchen', |
| 353 swarm_out_dir='[SWARM_OUT_DIR]', | 354 swarm_out_dir='[SWARM_OUT_DIR]', |
| 354 revision='abc123', | 355 revision='abc123', |
| 355 **gerrit_kwargs) | 356 **gerrit_kwargs) |
| 356 ) | 357 ) |
| OLD | NEW |