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, | |
192 '--images', api.flavor.device_path_join( | 191 '--images', api.flavor.device_path_join( |
193 api.flavor.device_dirs.images_dir, 'nanobench'), | 192 api.flavor.device_dirs.images_dir, 'nanobench'), |
194 ] | 193 ] |
195 | 194 |
196 skip_flag = None | 195 skip_flag = None |
197 if api.vars.builder_cfg.get('cpu_or_gpu') == 'CPU': | 196 if api.vars.builder_cfg.get('cpu_or_gpu') == 'CPU': |
198 skip_flag = '--nogpu' | 197 skip_flag = '--nogpu' |
199 elif api.vars.builder_cfg.get('cpu_or_gpu') == 'GPU': | 198 elif api.vars.builder_cfg.get('cpu_or_gpu') == 'GPU': |
200 skip_flag = '--nocpu' | 199 skip_flag = '--nocpu' |
201 if skip_flag: | 200 if skip_flag: |
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
348 buildername='Perf-Ubuntu-GCC-ShuttleA-GPU-GTX550Ti-x86_64-Release-' + | 347 buildername='Perf-Ubuntu-GCC-ShuttleA-GPU-GTX550Ti-x86_64-Release-' + |
349 'Valgrind-Trybot', | 348 'Valgrind-Trybot', |
350 mastername='client.skia', | 349 mastername='client.skia', |
351 slavename='skiabot-linux-swarm-000', | 350 slavename='skiabot-linux-swarm-000', |
352 buildnumber=5, | 351 buildnumber=5, |
353 path_config='kitchen', | 352 path_config='kitchen', |
354 swarm_out_dir='[SWARM_OUT_DIR]', | 353 swarm_out_dir='[SWARM_OUT_DIR]', |
355 revision='abc123', | 354 revision='abc123', |
356 **gerrit_kwargs) | 355 **gerrit_kwargs) |
357 ) | 356 ) |
OLD | NEW |