diff options
author | borenet@google.com <borenet@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-02-20 20:01:23 +0000 |
---|---|---|
committer | borenet@google.com <borenet@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-02-20 20:01:23 +0000 |
commit | 46dc43da88a55c5623ba1d385df872509673ce20 (patch) | |
tree | c72ea17ce773e8eb5ba9f2025da3583a55803092 /tools | |
parent | e49ad45404adf43c585bdf625ce05e2d61c28e9f (diff) |
Make ANGLE bot run only ANGLE configs in bench_pictures
Review URL: https://codereview.appspot.com/7397043
git-svn-id: http://skia.googlecode.com/svn/trunk@7799 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'tools')
-rw-r--r-- | tools/bench_pictures.cfg | 1 | ||||
-rw-r--r-- | tools/bench_pictures_cfg_helper.py | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/tools/bench_pictures.cfg b/tools/bench_pictures.cfg index 661af52850..f525ceb650 100644 --- a/tools/bench_pictures.cfg +++ b/tools/bench_pictures.cfg @@ -103,6 +103,7 @@ def AndroidConfigList(tile_size, scale, cores, viewport, do_gpu=True): # a dictionary of key/value pairs directly corresponding to the command-line # flags passed to bench_pictures. bench_pictures_cfg = { + 'angle': [TiledConfig(DEFAULT_TILE_X, DEFAULT_TILE_Y, device='angle')], 'debug': [TiledBitmapConfig(DEFAULT_TILE_X, DEFAULT_TILE_Y)], 'default': default_configs, 'no_gpu': [cfg for cfg in default_configs if cfg['device'] != 'gpu'], diff --git a/tools/bench_pictures_cfg_helper.py b/tools/bench_pictures_cfg_helper.py index 178ecd3d57..d67c93098b 100644 --- a/tools/bench_pictures_cfg_helper.py +++ b/tools/bench_pictures_cfg_helper.py @@ -35,6 +35,10 @@ 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 ViewportBitmapConfig(viewport_x, viewport_y, **kwargs): return BitmapConfig(viewport=[str(viewport_x), str(viewport_y)], **kwargs) |