| 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 13 matching lines...) Expand all Loading... |
| 24 sys.path.append(import_path) | 24 sys.path.append(import_path) |
| 25 | 25 |
| 26 | 26 |
| 27 from bench_pictures_cfg_helper import * | 27 from bench_pictures_cfg_helper import * |
| 28 | 28 |
| 29 | 29 |
| 30 # Default tile sizes | 30 # Default tile sizes |
| 31 DEFAULT_TILE_X = '256' | 31 DEFAULT_TILE_X = '256' |
| 32 DEFAULT_TILE_Y = '256' | 32 DEFAULT_TILE_Y = '256' |
| 33 | 33 |
| 34 # Default viewport size |
| 35 DEFAULT_VIEWPORT_X = 1500 |
| 36 DEFAULT_VIEWPORT_Y = 1000 |
| 37 |
| 34 | 38 |
| 35 # Configs to run on most bots | 39 # Configs to run on most bots |
| 36 default_configs = [ | 40 default_configs = [ |
| 37 # Basic CPU and GPU configs | 41 # Basic CPU and GPU configs |
| 38 TiledBitmapConfig(DEFAULT_TILE_X, DEFAULT_TILE_Y), | 42 TiledBitmapConfig(DEFAULT_TILE_X, DEFAULT_TILE_Y), |
| 39 TiledGPUConfig(DEFAULT_TILE_X, DEFAULT_TILE_Y), | 43 |
| 44 # Viewport CPU and GPU |
| 45 ViewportBitmapConfig(DEFAULT_VIEWPORT_X, DEFAULT_VIEWPORT_Y) |
| 46 ViewportGPUConfig(DEFAULT_VIEWPORT_X, DEFAULT_VIEWPORT_Y) |
| 40 | 47 |
| 41 # CopyTiles | 48 # CopyTiles |
| 42 CopyTilesConfig(DEFAULT_TILE_X, DEFAULT_TILE_Y), | 49 CopyTilesConfig(DEFAULT_TILE_X, DEFAULT_TILE_Y), |
| 43 | 50 |
| 44 # Record | 51 # Record |
| 45 RecordConfig(), | 52 RecordConfig(), |
| 46 | 53 |
| 47 # Multi-threaded | 54 # Multi-threaded |
| 48 MultiThreadTileConfig(4, DEFAULT_TILE_X, DEFAULT_TILE_Y), | 55 MultiThreadTileConfig(4, DEFAULT_TILE_X, DEFAULT_TILE_Y), |
| 49 | 56 |
| (...skipping 27 matching lines...) Expand all Loading... |
| 77 TiledBitmapConfig(tile_x, tile_y, scale=str(scale)), | 84 TiledBitmapConfig(tile_x, tile_y, scale=str(scale)), |
| 78 TileRTreeConfig( tile_x, tile_y, scale=str(scale)), | 85 TileRTreeConfig( tile_x, tile_y, scale=str(scale)), |
| 79 TileGridConfig( tile_x, tile_y, scale=str(scale)), | 86 TileGridConfig( tile_x, tile_y, scale=str(scale)), |
| 80 | 87 |
| 81 # Viewport playback | 88 # Viewport playback |
| 82 ViewportBitmapConfig(viewport_x, viewport_y, scale=str(scale)), | 89 ViewportBitmapConfig(viewport_x, viewport_y, scale=str(scale)), |
| 83 ViewportRTreeConfig( viewport_x, viewport_y, scale=str(scale)), | 90 ViewportRTreeConfig( viewport_x, viewport_y, scale=str(scale)), |
| 84 ] | 91 ] |
| 85 | 92 |
| 86 if do_gpu: | 93 if do_gpu: |
| 87 configs.append(TiledGPUConfig(tile_x, tile_y, scale=str(scale))) | |
| 88 configs.append(ViewportGPUConfig(viewport_x, viewport_y, scale=str(scale))) | 94 configs.append(ViewportGPUConfig(viewport_x, viewport_y, scale=str(scale))) |
| 89 | 95 |
| 90 # Multicore | 96 # Multicore |
| 91 for num_cores in cores: | 97 for num_cores in cores: |
| 92 configs.append(MultiThreadTileConfig(num_cores, tile_x, tile_y, | 98 configs.append(MultiThreadTileConfig(num_cores, tile_x, tile_y, |
| 93 scale=str(scale))) | 99 scale=str(scale))) |
| 94 | 100 |
| 95 return configs | 101 return configs |
| 96 | 102 |
| 97 | 103 |
| (...skipping 14 matching lines...) Expand all Loading... |
| 112 'galaxy_nexus': AndroidConfigList((256, 256), 0.8163, [], (800, 1280)), | 118 'galaxy_nexus': AndroidConfigList((256, 256), 0.8163, [], (800, 1280)), |
| 113 'nexus_4': AndroidConfigList((256, 256), 0.7836, [], (768, 1280)), | 119 'nexus_4': AndroidConfigList((256, 256), 0.7836, [], (768, 1280)), |
| 114 'nexus_7': AndroidConfigList((256, 256), 1.3061, [4], (1280, 800)), | 120 'nexus_7': AndroidConfigList((256, 256), 1.3061, [4], (1280, 800)), |
| 115 'nexus_10': AndroidConfigList((512, 512), 2.6122, [], (2560, 1600), | 121 'nexus_10': AndroidConfigList((512, 512), 2.6122, [], (2560, 1600), |
| 116 do_gpu=False) + [msaa4], | 122 do_gpu=False) + [msaa4], |
| 117 'razr_i': AndroidConfigList((256, 256), 0.5510, [], (540, 960)) + \ | 123 'razr_i': AndroidConfigList((256, 256), 0.5510, [], (540, 960)) + \ |
| 118 [msaa4], | 124 [msaa4], |
| 119 'intel_rhb': AndroidConfigList((256, 256), 0.5510, [], (540, 960)) + \ | 125 'intel_rhb': AndroidConfigList((256, 256), 0.5510, [], (540, 960)) + \ |
| 120 [msaa4], | 126 [msaa4], |
| 121 } | 127 } |
| OLD | NEW |