| 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 23 matching lines...) Expand all Loading... |
| 34 args.extend(['--gpuStatsDump', 'true']) | 34 args.extend(['--gpuStatsDump', 'true']) |
| 35 | 35 |
| 36 if 'Android' in bot and 'GPU' in bot: | 36 if 'Android' in bot and 'GPU' in bot: |
| 37 args.extend(['--useThermalManager', '1,1,10,1000']) | 37 args.extend(['--useThermalManager', '1,1,10,1000']) |
| 38 | 38 |
| 39 args.extend(['--scales', '1.0', '1.1']) | 39 args.extend(['--scales', '1.0', '1.1']) |
| 40 | 40 |
| 41 if 'iOS' in bot: | 41 if 'iOS' in bot: |
| 42 args.extend(['--skps', 'ignore_skps']) | 42 args.extend(['--skps', 'ignore_skps']) |
| 43 | 43 |
| 44 config = ['565', '8888', 'gpu', 'nonrendering', 'angle', 'hwui'] | 44 config = ['565', '8888', 'gpu', 'nonrendering', 'angle', 'hwui' ] |
| 45 config += [ 'f16', 'srgb' ] |
| 45 # The S4 crashes and the NP produces a long error stream when we run with | 46 # The S4 crashes and the NP produces a long error stream when we run with |
| 46 # MSAA. | 47 # MSAA. |
| 47 if ('GalaxyS4' not in bot and | 48 if ('GalaxyS4' not in bot and |
| 48 'NexusPlayer' not in bot): | 49 'NexusPlayer' not in bot): |
| 49 if 'Android' in bot: | 50 if 'Android' in bot: |
| 50 # The TegraX1 has a regular OpenGL implementation. We bench that instead | 51 # The TegraX1 has a regular OpenGL implementation. We bench that instead |
| 51 # of ES. | 52 # of ES. |
| 52 if 'TegraX1' in bot: | 53 if 'TegraX1' in bot: |
| 53 config.remove('gpu') | 54 config.remove('gpu') |
| 54 config.extend(['gl', 'glmsaa4', 'glnvpr4', 'glnvprdit4']) | 55 config.extend(['gl', 'glmsaa4', 'glnvpr4', 'glnvprdit4']) |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 181 if len(sys.argv) == 2 and sys.argv[1] == 'test': | 182 if len(sys.argv) == 2 and sys.argv[1] == 'test': |
| 182 self_test() | 183 self_test() |
| 183 sys.exit(0) | 184 sys.exit(0) |
| 184 | 185 |
| 185 if len(sys.argv) != 3: | 186 if len(sys.argv) != 3: |
| 186 print usage | 187 print usage |
| 187 sys.exit(1) | 188 sys.exit(1) |
| 188 | 189 |
| 189 with open(sys.argv[1], 'w') as out: | 190 with open(sys.argv[1], 'w') as out: |
| 190 json.dump(get_args(sys.argv[2]), out) | 191 json.dump(get_args(sys.argv[2]), out) |
| OLD | NEW |