| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 | 2 |
| 3 usage = ''' | 3 usage = ''' |
| 4 Write extra flags to outfile for DM based on the bot name: | 4 Write extra flags to outfile for DM based on the bot name: |
| 5 $ python dm_flags.py outfile Test-Mac10.9-MacMini6.2-HD4000-x86_64-Release | 5 $ python dm_flags.py outfile Test-Mac10.9-MacMini6.2-HD4000-x86_64-Release |
| 6 Or run self-tests: | 6 Or run self-tests: |
| 7 $ python dm_flags.py test | 7 $ python dm_flags.py test |
| 8 ''' | 8 ''' |
| 9 | 9 |
| 10 import inspect | 10 import inspect |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 | 24 |
| 25 configs = ['565', '8888', 'gpu'] | 25 configs = ['565', '8888', 'gpu'] |
| 26 # The S4 crashes and the NP produces a long error stream when we run with | 26 # The S4 crashes and the NP produces a long error stream when we run with |
| 27 # MSAA. | 27 # MSAA. |
| 28 if ('GalaxyS4' not in bot and | 28 if ('GalaxyS4' not in bot and |
| 29 'NexusPlayer' not in bot): | 29 'NexusPlayer' not in bot): |
| 30 if 'Android' in bot: | 30 if 'Android' in bot: |
| 31 configs.extend(['msaa4', 'nvprmsaa4']) | 31 configs.extend(['msaa4', 'nvprmsaa4']) |
| 32 else: | 32 else: |
| 33 configs.extend(['msaa16', 'nvprmsaa16']) | 33 configs.extend(['msaa16', 'nvprmsaa16']) |
| 34 # Runs out of memory on Android bots. | 34 # Runs out of memory on Android bots and Daisy. Everyone else seems fine. |
| 35 if 'Android' not in bot: | 35 if 'Android' not in bot and 'Daisy' not in bot: |
| 36 configs.append('pdf') | 36 configs.append('pdf') |
| 37 | 37 |
| 38 # Xoom and NP are running out of RAM when we run all these modes. skia:3255 | 38 # Xoom and NP are running out of RAM when we run all these modes. skia:3255 |
| 39 if ('Xoom' not in bot and | 39 if ('Xoom' not in bot and |
| 40 'NexusPlayer' not in bot): | 40 'NexusPlayer' not in bot): |
| 41 configs.extend(mode + '-8888' for mode in | 41 configs.extend(mode + '-8888' for mode in |
| 42 ['serialize', 'tiles_rt', 'pipe']) | 42 ['serialize', 'tiles_rt', 'pipe']) |
| 43 configs.append('tiles_rt-gpu') | 43 configs.append('tiles_rt-gpu') |
| 44 if 'ANGLE' in bot: | 44 if 'ANGLE' in bot: |
| 45 configs.append('angle') | 45 configs.append('angle') |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 if len(sys.argv) == 2 and sys.argv[1] == 'test': | 125 if len(sys.argv) == 2 and sys.argv[1] == 'test': |
| 126 self_test() | 126 self_test() |
| 127 sys.exit(0) | 127 sys.exit(0) |
| 128 | 128 |
| 129 if len(sys.argv) != 3: | 129 if len(sys.argv) != 3: |
| 130 print usage | 130 print usage |
| 131 sys.exit(1) | 131 sys.exit(1) |
| 132 | 132 |
| 133 with open(sys.argv[1], 'w') as out: | 133 with open(sys.argv[1], 'w') as out: |
| 134 json.dump(get_args(sys.argv[2]), out) | 134 json.dump(get_args(sys.argv[2]), out) |
| OLD | NEW |