| OLD | NEW |
| 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 | 5 |
| 6 """ | 6 """ |
| 7 This file defines the configurations in which bench_pictures should be run | 7 This file defines the configurations in which bench_pictures should be run |
| 8 on various platforms. The buildbots read these configurations from the | 8 on various platforms. The buildbots read these configurations from the |
| 9 bench_pictures_cfg dictionary. Everything else in this file exists to help in | 9 bench_pictures_cfg dictionary. Everything else in this file exists to help in |
| 10 constructing that dictionary. | 10 constructing that dictionary. |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 configs.append(ViewportGPUConfig(viewport_x, viewport_y, scale=str(scale))) | 92 configs.append(ViewportGPUConfig(viewport_x, viewport_y, scale=str(scale))) |
| 93 | 93 |
| 94 # Multicore | 94 # Multicore |
| 95 for num_cores in cores: | 95 for num_cores in cores: |
| 96 configs.append(MultiThreadTileConfig(num_cores, tile_x, tile_y, | 96 configs.append(MultiThreadTileConfig(num_cores, tile_x, tile_y, |
| 97 scale=str(scale))) | 97 scale=str(scale))) |
| 98 | 98 |
| 99 return configs | 99 return configs |
| 100 | 100 |
| 101 | 101 |
| 102 msaa4 = Config(config='msaa4') |
| 103 |
| 104 |
| 102 # This dictionary defines the sets of configs for all platforms. Each config is | 105 # This dictionary defines the sets of configs for all platforms. Each config is |
| 103 # a dictionary of key/value pairs directly corresponding to the command-line | 106 # a dictionary of key/value pairs directly corresponding to the command-line |
| 104 # flags passed to bench_pictures. | 107 # flags passed to bench_pictures. |
| 105 bench_pictures_cfg = { | 108 bench_pictures_cfg = { |
| 106 'angle': [TiledConfig(DEFAULT_TILE_X, DEFAULT_TILE_Y, config='angle')], | 109 'angle': [TiledConfig(DEFAULT_TILE_X, DEFAULT_TILE_Y, config='angle')], |
| 107 'debug': [TiledBitmapConfig(DEFAULT_TILE_X, DEFAULT_TILE_Y)], | 110 'debug': [TiledBitmapConfig(DEFAULT_TILE_X, DEFAULT_TILE_Y)], |
| 108 'default': default_configs, | 111 'default': default_configs, |
| 109 'no_gpu': [cfg for cfg in default_configs if cfg['config'] != 'gpu'], | 112 'no_gpu': [cfg for cfg in default_configs if cfg['config'] != 'gpu'], |
| 110 'nexus_s': AndroidConfigList((256, 256), 0.4897, [], (480, 800), | 113 'nexus_s': AndroidConfigList((256, 256), 0.4897, [], (480, 800), |
| 111 do_gpu=False), | 114 do_gpu=False), |
| 112 'xoom': AndroidConfigList((256, 256), 1.2244, [], (1200, 800)), | 115 'xoom': AndroidConfigList((256, 256), 1.2244, [], (1200, 800)), |
| 113 'galaxy_nexus': AndroidConfigList((256, 256), 0.8163, [], (800, 1280)), | 116 'galaxy_nexus': AndroidConfigList((256, 256), 0.8163, [], (800, 1280)) + \ |
| 117 [msaa4], |
| 114 'nexus_4': AndroidConfigList((256, 256), 0.7836, [], (768, 1280)), | 118 'nexus_4': AndroidConfigList((256, 256), 0.7836, [], (768, 1280)), |
| 115 'nexus_7': AndroidConfigList((256, 256), 1.3061, [2], (1280, 800)), | 119 'nexus_7': AndroidConfigList((256, 256), 1.3061, [2], (1280, 800)), |
| 116 'nexus_10': AndroidConfigList((512, 512), 2.6122, [], (2560, 1600)), | 120 'nexus_10': AndroidConfigList((512, 512), 2.6122, [], (2560, 1600)) + \ |
| 117 'x86': AndroidConfigList((256, 256), 0.5510, [], (540, 960)), | 121 [msaa4], |
| 122 'razr_i': AndroidConfigList((256, 256), 0.5510, [], (540, 960)) + \ |
| 123 [msaa4], |
| 118 } | 124 } |
| OLD | NEW |