diff options
-rw-r--r-- | tools/bench_pictures.cfg | 1 | ||||
-rw-r--r-- | tools/bench_pictures_cfg_helper.py | 22 |
2 files changed, 14 insertions, 9 deletions
diff --git a/tools/bench_pictures.cfg b/tools/bench_pictures.cfg index 102c7448d4..01f25c70df 100644 --- a/tools/bench_pictures.cfg +++ b/tools/bench_pictures.cfg @@ -114,4 +114,5 @@ bench_pictures_cfg = { 'nexus_4': AndroidConfigList((256, 256), 0.7836, [], (768, 1280)), 'nexus_7': AndroidConfigList((256, 256), 1.3061, [2], (1280, 800)), 'nexus_10': AndroidConfigList((512, 512), 2.6122, [], (2560, 1600)), + 'x86': AndroidConfigList((256, 256), 0.5510, [], (540, 960)), } diff --git a/tools/bench_pictures_cfg_helper.py b/tools/bench_pictures_cfg_helper.py index 07b1e1e5c7..2670d77548 100644 --- a/tools/bench_pictures_cfg_helper.py +++ b/tools/bench_pictures_cfg_helper.py @@ -13,10 +13,11 @@ def Config(**kwargs): return config -def TileArgs(tile_x, tile_y): - return {'mode': ['tile', str(tile_x), str(tile_y)], - 'timeIndividualTiles': True, - } +def TileArgs(tile_x, tile_y, timeIndividualTiles=True): + config = {'mode': ['tile', str(tile_x), str(tile_y)]} + if timeIndividualTiles: + config['timeIndividualTiles'] = True + return config def BitmapConfig(**kwargs): @@ -27,16 +28,18 @@ def GPUConfig(**kwargs): return Config(config='gpu', **kwargs) -def TiledBitmapConfig(tile_x, tile_y, **kwargs): - return BitmapConfig(**dict(TileArgs(tile_x, tile_y).items() + kwargs.items())) +def TiledBitmapConfig(tile_x, tile_y, timeIndividualTiles=True, **kwargs): + return BitmapConfig(**dict(TileArgs(tile_x, tile_y, + timeIndividualTiles=timeIndividualTiles).items() + kwargs.items())) def TiledGPUConfig(tile_x, tile_y, **kwargs): return GPUConfig(**dict(TileArgs(tile_x, tile_y).items() + kwargs.items())) -def TiledConfig(tile_x, tile_y, **kwargs): - return Config(**dict(TileArgs(tile_x, tile_y).items() + kwargs.items())) +def TiledConfig(tile_x, tile_y, timeIndividualTiles=True, **kwargs): + return Config(**dict(TileArgs(tile_x, tile_y, + timeIndividualTiles=timeIndividualTiles).items() + kwargs.items())) def ViewportBitmapConfig(viewport_x, viewport_y, **kwargs): @@ -70,7 +73,8 @@ def PlaybackCreationConfig(**kwargs): def MultiThreadTileConfig(threads, tile_x, tile_y, **kwargs): - return TiledBitmapConfig(multi=str(threads), tile_x=tile_x, tile_y=tile_y, + return TiledBitmapConfig(tile_x=tile_x, tile_y=tile_y, + timeIndividualTiles=False, multi=str(threads), **kwargs) |