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 16 matching lines...) Expand all Loading... |
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 configs = ['565', '8888', 'gpu'] | 32 configs = ['565', '8888', 'gpu'] |
33 | 33 |
34 if '-GCE-' in bot: | 34 if '-GCE-' in bot: |
35 configs.extend(['f16', 'srgb']) # Gamma-correct formats. | 35 configs.extend(['f16', 'srgb']) # Gamma-correct formats. |
36 configs.extend(['sp-8888', '2ndpic-8888']) # Test niche uses of SkPicture. | 36 configs.extend(['sp-8888', '2ndpic-8888']) # Test niche uses of SkPicture. |
37 configs.extend(['remote-8888', 'remote_cache-8888']) # Hacking, WIP. | |
38 | 37 |
39 if '-TSAN' not in bot: | 38 if '-TSAN' not in bot: |
40 if ('TegraK1' in bot or | 39 if ('TegraK1' in bot or |
41 'GTX550Ti' in bot or | 40 'GTX550Ti' in bot or |
42 'GTX660' in bot or | 41 'GTX660' in bot or |
43 'GT610' in bot): | 42 'GT610' in bot): |
44 if 'Android' in bot: | 43 if 'Android' in bot: |
45 configs.append('nvprmsaa4') | 44 configs.append('nvprmsaa4') |
46 else: | 45 else: |
47 configs.append('nvprmsaa16') | 46 configs.append('nvprmsaa16') |
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
255 if len(sys.argv) == 2 and sys.argv[1] == 'test': | 254 if len(sys.argv) == 2 and sys.argv[1] == 'test': |
256 self_test() | 255 self_test() |
257 sys.exit(0) | 256 sys.exit(0) |
258 | 257 |
259 if len(sys.argv) != 3: | 258 if len(sys.argv) != 3: |
260 print usage | 259 print usage |
261 sys.exit(1) | 260 sys.exit(1) |
262 | 261 |
263 with open(sys.argv[1], 'w') as out: | 262 with open(sys.argv[1], 'w') as out: |
264 json.dump(get_args(sys.argv[2]), out) | 263 json.dump(get_args(sys.argv[2]), out) |
OLD | NEW |