Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(700)

Unified Diff: tools/bench_pictures_cfg_helper.py

Issue 12636002: Fix bench_pictures.cfg (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/bench_pictures.cfg ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/bench_pictures_cfg_helper.py
===================================================================
--- tools/bench_pictures_cfg_helper.py (revision 7894)
+++ tools/bench_pictures_cfg_helper.py (working copy)
@@ -13,10 +13,11 @@
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 @@
return Config(device='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 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)
« no previous file with comments | « tools/bench_pictures.cfg ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698