aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools
diff options
context:
space:
mode:
authorGravatar borenet@google.com <borenet@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-03-07 20:18:27 +0000
committerGravatar borenet@google.com <borenet@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-03-07 20:18:27 +0000
commitb8f0de176f05e78e6efc3a0eb83da478c85cc034 (patch)
treea3a813c0ca15a7d0ff7a912e44ddb9df423bc55d /tools
parent20beb481ec72b9723c63f9ed5480adad0ff5a9a0 (diff)
Fix bench_pictures.cfg
- Add configs for Razr I - Don't run multithreaded with --timeIndividualTiles Review URL: https://codereview.chromium.org/12636002 git-svn-id: http://skia.googlecode.com/svn/trunk@8027 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'tools')
-rw-r--r--tools/bench_pictures.cfg1
-rw-r--r--tools/bench_pictures_cfg_helper.py22
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)