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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
51 | 51 |
52 if 'Android' in bot and 'GPU' in bot: | 52 if 'Android' in bot and 'GPU' in bot: |
53 args.extend(['--useThermalManager', '1,1,10,1000']) | 53 args.extend(['--useThermalManager', '1,1,10,1000']) |
54 | 54 |
55 args.extend(['--scales', '1.0', '1.1']) | 55 args.extend(['--scales', '1.0', '1.1']) |
56 | 56 |
57 if 'iOS' in bot: | 57 if 'iOS' in bot: |
58 args.extend(['--skps', 'ignore_skps']) | 58 args.extend(['--skps', 'ignore_skps']) |
59 | 59 |
60 config = ['565', '8888', 'gpu', 'nonrendering', 'angle', 'hwui' ] | 60 config = ['565', '8888', 'gpu', 'nonrendering', 'angle', 'hwui' ] |
61 config += [ 'f16', 'srgb' ] | 61 if 'AndroidOne' not in bot: |
62 config += [ 'f16', 'srgb' ] | |
62 # The S4 crashes and the NP produces a long error stream when we run with | 63 # The S4 crashes and the NP produces a long error stream when we run with |
63 # MSAA. | 64 # MSAA. |
64 if ('GalaxyS4' not in bot and | 65 if ('GalaxyS4' not in bot and |
65 'NexusPlayer' not in bot): | 66 'NexusPlayer' not in bot): |
66 if 'Android' in bot: | 67 if 'Android' in bot: |
67 # The TegraX1 has a regular OpenGL implementation. We bench that instead | 68 # The TegraX1 has a regular OpenGL implementation. We bench that instead |
68 # of ES. | 69 # of ES. |
69 if 'TegraX1' in bot: | 70 if 'TegraX1' in bot: |
70 config.remove('gpu') | 71 config.remove('gpu') |
71 config.extend(['gl', 'glmsaa4', 'glnvpr4', 'glnvprdit4']) | 72 config.extend(['gl', 'glmsaa4', 'glnvpr4', 'glnvprdit4']) |
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
230 api.file.makedirs('perf_dir', api.vars.perf_data_dir) | 231 api.file.makedirs('perf_dir', api.vars.perf_data_dir) |
231 api.flavor.copy_directory_contents_to_host( | 232 api.flavor.copy_directory_contents_to_host( |
232 api.flavor.device_dirs.perf_data_dir, | 233 api.flavor.device_dirs.perf_data_dir, |
233 api.vars.perf_data_dir) | 234 api.vars.perf_data_dir) |
234 | 235 |
235 | 236 |
236 def RunSteps(api): | 237 def RunSteps(api): |
237 api.core.setup() | 238 api.core.setup() |
238 api.flavor.install() | 239 api.flavor.install() |
239 perf_steps(api) | 240 perf_steps(api) |
240 api.flavor.cleanup_steps() | 241 api.flavor.cleanup_steps() |
borenet
2016/09/12 13:10:12
Need try/finally here.
mtklein
2016/09/12 14:12:12
Done.
| |
241 api.run.check_failure() | 242 api.run.check_failure() |
242 | 243 |
243 | 244 |
244 def GenTests(api): | 245 def GenTests(api): |
245 def AndroidTestData(builder): | 246 def AndroidTestData(builder): |
246 test_data = ( | 247 test_data = ( |
247 api.step_data( | 248 api.step_data( |
248 'get EXTERNAL_STORAGE dir', | 249 'get EXTERNAL_STORAGE dir', |
249 stdout=api.raw_io.output('/storage/emulated/legacy')) + | 250 stdout=api.raw_io.output('/storage/emulated/legacy')) + |
250 api.step_data( | 251 api.step_data( |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
342 buildername='Perf-Ubuntu-GCC-ShuttleA-GPU-GTX550Ti-x86_64-Release-' + | 343 buildername='Perf-Ubuntu-GCC-ShuttleA-GPU-GTX550Ti-x86_64-Release-' + |
343 'Valgrind-Trybot', | 344 'Valgrind-Trybot', |
344 mastername='client.skia', | 345 mastername='client.skia', |
345 slavename='skiabot-linux-swarm-000', | 346 slavename='skiabot-linux-swarm-000', |
346 buildnumber=5, | 347 buildnumber=5, |
347 path_config='kitchen', | 348 path_config='kitchen', |
348 swarm_out_dir='[SWARM_OUT_DIR]', | 349 swarm_out_dir='[SWARM_OUT_DIR]', |
349 revision='abc123', | 350 revision='abc123', |
350 **gerrit_kwargs) | 351 **gerrit_kwargs) |
351 ) | 352 ) |
OLD | NEW |