| 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 20 matching lines...) Expand all Loading... |
| 31 DEFAULT_TILE_X = '256' | 31 DEFAULT_TILE_X = '256' |
| 32 DEFAULT_TILE_Y = '256' | 32 DEFAULT_TILE_Y = '256' |
| 33 | 33 |
| 34 | 34 |
| 35 # Configs to run on most bots | 35 # Configs to run on most bots |
| 36 default_configs = [ | 36 default_configs = [ |
| 37 # Basic CPU and GPU configs | 37 # Basic CPU and GPU configs |
| 38 TiledBitmapConfig(DEFAULT_TILE_X, DEFAULT_TILE_Y), | 38 TiledBitmapConfig(DEFAULT_TILE_X, DEFAULT_TILE_Y), |
| 39 TiledGPUConfig(DEFAULT_TILE_X, DEFAULT_TILE_Y), | 39 TiledGPUConfig(DEFAULT_TILE_X, DEFAULT_TILE_Y), |
| 40 | 40 |
| 41 # Deferred image decoding |
| 42 TiledBitmapConfig(DEFAULT_TILE_X, DEFAULT_TILE_Y, |
| 43 timeIndividualTiles=False, deferImageDecoding=True, |
| 44 useVolatileCache=True), |
| 41 # CopyTiles | 45 # CopyTiles |
| 42 CopyTilesConfig(DEFAULT_TILE_X, DEFAULT_TILE_Y), | 46 CopyTilesConfig(DEFAULT_TILE_X, DEFAULT_TILE_Y), |
| 43 | 47 |
| 44 # Record | 48 # Record |
| 45 RecordConfig(), | 49 RecordConfig(), |
| 46 | 50 |
| 47 # Multi-threaded | 51 # Multi-threaded |
| 48 MultiThreadTileConfig(2, DEFAULT_TILE_X, DEFAULT_TILE_Y), | 52 MultiThreadTileConfig(2, DEFAULT_TILE_X, DEFAULT_TILE_Y), |
| 49 MultiThreadTileConfig(3, DEFAULT_TILE_X, DEFAULT_TILE_Y), | 53 MultiThreadTileConfig(3, DEFAULT_TILE_X, DEFAULT_TILE_Y), |
| 50 MultiThreadTileConfig(4, DEFAULT_TILE_X, DEFAULT_TILE_Y), | 54 MultiThreadTileConfig(4, DEFAULT_TILE_X, DEFAULT_TILE_Y), |
| (...skipping 24 matching lines...) Expand all Loading... |
| 75 # Record | 79 # Record |
| 76 RecordConfig( scale=str(scale)), | 80 RecordConfig( scale=str(scale)), |
| 77 RecordRTreeConfig(scale=str(scale)), | 81 RecordRTreeConfig(scale=str(scale)), |
| 78 RecordGridConfig( tile_x, tile_y, scale=str(scale)), | 82 RecordGridConfig( tile_x, tile_y, scale=str(scale)), |
| 79 | 83 |
| 80 # Tiled playback | 84 # Tiled playback |
| 81 TiledBitmapConfig(tile_x, tile_y, scale=str(scale)), | 85 TiledBitmapConfig(tile_x, tile_y, scale=str(scale)), |
| 82 TileRTreeConfig( tile_x, tile_y, scale=str(scale)), | 86 TileRTreeConfig( tile_x, tile_y, scale=str(scale)), |
| 83 TileGridConfig( tile_x, tile_y, scale=str(scale)), | 87 TileGridConfig( tile_x, tile_y, scale=str(scale)), |
| 84 | 88 |
| 89 # Deferred image decoding |
| 90 TiledBitmapConfig(tile_x, tile_y, timeIndividualTiles=False, |
| 91 scale=str(scale), deferImageDecoding=True, |
| 92 useVolatileCache=True), |
| 93 |
| 85 # Viewport playback | 94 # Viewport playback |
| 86 ViewportBitmapConfig(viewport_x, viewport_y, scale=str(scale)), | 95 ViewportBitmapConfig(viewport_x, viewport_y, scale=str(scale)), |
| 87 ViewportRTreeConfig( viewport_x, viewport_y, scale=str(scale)), | 96 ViewportRTreeConfig( viewport_x, viewport_y, scale=str(scale)), |
| 88 ] | 97 ] |
| 89 | 98 |
| 90 if do_gpu: | 99 if do_gpu: |
| 91 configs.append(TiledGPUConfig(tile_x, tile_y, scale=str(scale))) | 100 configs.append(TiledGPUConfig(tile_x, tile_y, scale=str(scale))) |
| 92 configs.append(ViewportGPUConfig(viewport_x, viewport_y, scale=str(scale))) | 101 configs.append(ViewportGPUConfig(viewport_x, viewport_y, scale=str(scale))) |
| 93 | 102 |
| 94 # Multicore | 103 # Multicore |
| (...skipping 14 matching lines...) Expand all Loading... |
| 109 'no_gpu': [cfg for cfg in default_configs if cfg['config'] != 'gpu'], | 118 'no_gpu': [cfg for cfg in default_configs if cfg['config'] != 'gpu'], |
| 110 'nexus_s': AndroidConfigList((256, 256), 0.4897, [], (480, 800), | 119 'nexus_s': AndroidConfigList((256, 256), 0.4897, [], (480, 800), |
| 111 do_gpu=False), | 120 do_gpu=False), |
| 112 'xoom': AndroidConfigList((256, 256), 1.2244, [], (1200, 800)), | 121 'xoom': AndroidConfigList((256, 256), 1.2244, [], (1200, 800)), |
| 113 'galaxy_nexus': AndroidConfigList((256, 256), 0.8163, [], (800, 1280)), | 122 'galaxy_nexus': AndroidConfigList((256, 256), 0.8163, [], (800, 1280)), |
| 114 'nexus_4': AndroidConfigList((256, 256), 0.7836, [], (768, 1280)), | 123 'nexus_4': AndroidConfigList((256, 256), 0.7836, [], (768, 1280)), |
| 115 'nexus_7': AndroidConfigList((256, 256), 1.3061, [2], (1280, 800)), | 124 'nexus_7': AndroidConfigList((256, 256), 1.3061, [2], (1280, 800)), |
| 116 'nexus_10': AndroidConfigList((512, 512), 2.6122, [], (2560, 1600)), | 125 'nexus_10': AndroidConfigList((512, 512), 2.6122, [], (2560, 1600)), |
| 117 'x86': AndroidConfigList((256, 256), 0.5510, [], (540, 960)), | 126 'x86': AndroidConfigList((256, 256), 0.5510, [], (540, 960)), |
| 118 } | 127 } |
| OLD | NEW |