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 """ Helper functions to be used in bench_pictures.cfg. """ | 6 """ Helper functions to be used in bench_pictures.cfg. """ |
7 | 7 |
8 | 8 |
9 def Config(**kwargs): | 9 def Config(**kwargs): |
10 config = {} | 10 config = {} |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 def TileRTreeConfig(tile_x, tile_y, **kwargs): | 98 def TileRTreeConfig(tile_x, tile_y, **kwargs): |
99 return RTreeConfig(**dict(TileArgs(tile_x, tile_y).items() + kwargs.items())) | 99 return RTreeConfig(**dict(TileArgs(tile_x, tile_y).items() + kwargs.items())) |
100 | 100 |
101 | 101 |
102 def RecordGridConfig(tile_x, tile_y, **kwargs): | 102 def RecordGridConfig(tile_x, tile_y, **kwargs): |
103 return GridConfig(tile_x=tile_x, tile_y=tile_y, mode='record', **kwargs) | 103 return GridConfig(tile_x=tile_x, tile_y=tile_y, mode='record', **kwargs) |
104 | 104 |
105 | 105 |
106 def PlaybackCreationGridConfig(tile_x, tile_y, **kwargs): | 106 def PlaybackCreationGridConfig(tile_x, tile_y, **kwargs): |
107 return GridConfig(tile_x, tile_y, mode='playbackCreation') | 107 return GridConfig(tile_x, tile_y, mode='playbackCreation') |
108 | |
109 | |
110 def TileGridConfig(tile_x, tile_y, **kwargs): | |
111 return GridConfig(tile_x, tile_y, | |
112 **dict(TileArgs(tile_x, tile_y).items() + kwargs.items())) | |
OLD | NEW |