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 26 matching lines...) Expand all Loading... |
37 args.extend(['--useThermalManager', '1,1,10,1000']) | 37 args.extend(['--useThermalManager', '1,1,10,1000']) |
38 | 38 |
39 if 'Appurify' not in bot: | 39 if 'Appurify' not in bot: |
40 args.extend(['--scales', '1.0', '1.1']) | 40 args.extend(['--scales', '1.0', '1.1']) |
41 | 41 |
42 if 'iOS' in bot: | 42 if 'iOS' in bot: |
43 args.extend(['--skps', 'ignore_skps']) | 43 args.extend(['--skps', 'ignore_skps']) |
44 | 44 |
45 if 'Appurify' not in bot: | 45 if 'Appurify' not in bot: |
46 config = ['565', '8888', 'gpu', 'nonrendering', 'angle', 'hwui'] | 46 config = ['565', '8888', 'gpu', 'nonrendering', 'angle', 'hwui'] |
| 47 config.extend(['srgb', 'f16']) |
47 # The S4 crashes and the NP produces a long error stream when we run with | 48 # The S4 crashes and the NP produces a long error stream when we run with |
48 # MSAA. | 49 # MSAA. |
49 if ('GalaxyS4' not in bot and | 50 if ('GalaxyS4' not in bot and |
50 'NexusPlayer' not in bot): | 51 'NexusPlayer' not in bot): |
51 if 'Android' in bot: | 52 if 'Android' in bot: |
52 config.extend(['msaa4', 'nvprmsaa4']) | 53 config.extend(['msaa4', 'nvprmsaa4']) |
53 else: | 54 else: |
54 config.extend(['msaa16', 'nvprmsaa16']) | 55 config.extend(['msaa16', 'nvprmsaa16']) |
55 args.append('--config') | 56 args.append('--config') |
56 args.extend(config) | 57 args.extend(config) |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
168 if len(sys.argv) == 2 and sys.argv[1] == 'test': | 169 if len(sys.argv) == 2 and sys.argv[1] == 'test': |
169 self_test() | 170 self_test() |
170 sys.exit(0) | 171 sys.exit(0) |
171 | 172 |
172 if len(sys.argv) != 3: | 173 if len(sys.argv) != 3: |
173 print usage | 174 print usage |
174 sys.exit(1) | 175 sys.exit(1) |
175 | 176 |
176 with open(sys.argv[1], 'w') as out: | 177 with open(sys.argv[1], 'w') as out: |
177 json.dump(get_args(sys.argv[2]), out) | 178 json.dump(get_args(sys.argv[2]), out) |
OLD | NEW |