| OLD | NEW |
| 1 # | 1 # |
| 2 # Copyright 2015 Google Inc. | 2 # Copyright 2015 Google Inc. |
| 3 # | 3 # |
| 4 # Use of this source code is governed by a BSD-style license that can be | 4 # Use of this source code is governed by a BSD-style license that can be |
| 5 # found in the LICENSE file. | 5 # found in the LICENSE file. |
| 6 # | 6 # |
| 7 | 7 |
| 8 #!/usr/bin/env python | 8 #!/usr/bin/env python |
| 9 | 9 |
| 10 usage = ''' | 10 usage = ''' |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 | 22 |
| 23 def lineno(): | 23 def lineno(): |
| 24 caller = inspect.stack()[1] # Up one level to our caller. | 24 caller = inspect.stack()[1] # Up one level to our caller. |
| 25 return inspect.getframeinfo(caller[0]).lineno | 25 return inspect.getframeinfo(caller[0]).lineno |
| 26 | 26 |
| 27 | 27 |
| 28 cov_start = lineno()+1 # We care about coverage starting just past this def. | 28 cov_start = lineno()+1 # We care about coverage starting just past this def. |
| 29 def get_args(bot): | 29 def get_args(bot): |
| 30 args = [] | 30 args = [] |
| 31 | 31 |
| 32 args.extend(['--scales', '1.0', '1.1']) | 32 if 'Appurify' not in bot: |
| 33 args.extend(['--scales', '1.0', '1.1']) |
| 33 | 34 |
| 34 if 'iOS' in bot: | 35 if 'iOS' in bot: |
| 35 args.extend(['--skps', 'ignore_skps']) | 36 args.extend(['--skps', 'ignore_skps']) |
| 36 | 37 |
| 37 config = ['565', '8888', 'gpu', 'nonrendering', 'angle', 'hwui'] | 38 if 'Appurify' not in bot: |
| 38 # The S4 crashes and the NP produces a long error stream when we run with | 39 config = ['565', '8888', 'gpu', 'nonrendering', 'angle', 'hwui'] |
| 39 # MSAA. | 40 # The S4 crashes and the NP produces a long error stream when we run with |
| 40 if ('GalaxyS4' not in bot and | 41 # MSAA. |
| 41 'NexusPlayer' not in bot): | 42 if ('GalaxyS4' not in bot and |
| 42 if 'Android' in bot: | 43 'NexusPlayer' not in bot): |
| 43 config.extend(['msaa4', 'nvprmsaa4']) | 44 if 'Android' in bot: |
| 44 else: | 45 config.extend(['msaa4', 'nvprmsaa4']) |
| 45 config.extend(['msaa16', 'nvprmsaa16']) | 46 else: |
| 46 args.append('--config') | 47 config.extend(['msaa16', 'nvprmsaa16']) |
| 47 args.extend(config) | 48 args.append('--config') |
| 49 args.extend(config) |
| 48 | 50 |
| 49 if 'Valgrind' in bot: | 51 if 'Valgrind' in bot: |
| 50 # Don't care about Valgrind performance. | 52 # Don't care about Valgrind performance. |
| 51 args.extend(['--loops', '1']) | 53 args.extend(['--loops', '1']) |
| 52 args.extend(['--samples', '1']) | 54 args.extend(['--samples', '1']) |
| 53 | 55 |
| 54 if 'HD2000' in bot: | 56 if 'HD2000' in bot: |
| 55 args.extend(['--GPUbenchTileW', '256']) | 57 args.extend(['--GPUbenchTileW', '256']) |
| 56 args.extend(['--GPUbenchTileH', '256']) | 58 args.extend(['--GPUbenchTileH', '256']) |
| 57 | 59 |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 if len(sys.argv) == 2 and sys.argv[1] == 'test': | 116 if len(sys.argv) == 2 and sys.argv[1] == 'test': |
| 115 self_test() | 117 self_test() |
| 116 sys.exit(0) | 118 sys.exit(0) |
| 117 | 119 |
| 118 if len(sys.argv) != 3: | 120 if len(sys.argv) != 3: |
| 119 print usage | 121 print usage |
| 120 sys.exit(1) | 122 sys.exit(1) |
| 121 | 123 |
| 122 with open(sys.argv[1], 'w') as out: | 124 with open(sys.argv[1], 'w') as out: |
| 123 json.dump(get_args(sys.argv[2]), out) | 125 json.dump(get_args(sys.argv[2]), out) |
| OLD | NEW |