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 """ | 6 """ |
7 This file defines the configurations in which bench_pictures should be run | 7 This file defines the configurations in which bench_pictures should be run |
8 on various platforms. The buildbots read these configurations from the | 8 on various platforms. The buildbots read these configurations from the |
9 bench_pictures_cfg dictionary. Everything else in this file exists to help in | 9 bench_pictures_cfg dictionary. Everything else in this file exists to help in |
10 constructing that dictionary. | 10 constructing that dictionary. |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 default_configs = [ | 42 default_configs = [ |
43 # Viewport CPU and GPU | 43 # Viewport CPU and GPU |
44 ViewportBitmapConfig(DEFAULT_VIEWPORT_X, DEFAULT_VIEWPORT_Y), | 44 ViewportBitmapConfig(DEFAULT_VIEWPORT_X, DEFAULT_VIEWPORT_Y), |
45 ViewportGPUConfig(DEFAULT_VIEWPORT_X, DEFAULT_VIEWPORT_Y), | 45 ViewportGPUConfig(DEFAULT_VIEWPORT_X, DEFAULT_VIEWPORT_Y), |
46 | 46 |
47 # Scaled viewport, CPU and GPU | 47 # Scaled viewport, CPU and GPU |
48 ViewportBitmapConfig(DEFAULT_VIEWPORT_X, DEFAULT_VIEWPORT_Y, | 48 ViewportBitmapConfig(DEFAULT_VIEWPORT_X, DEFAULT_VIEWPORT_Y, |
49 scale=str(DEFAULT_SCALE)), | 49 scale=str(DEFAULT_SCALE)), |
50 ViewportGPUConfig(DEFAULT_VIEWPORT_X, DEFAULT_VIEWPORT_Y, | 50 ViewportGPUConfig(DEFAULT_VIEWPORT_X, DEFAULT_VIEWPORT_Y, |
51 scale=str(DEFAULT_SCALE)), | 51 scale=str(DEFAULT_SCALE)), |
52 | |
53 # Record | |
54 RecordConfig(), | |
55 RecordGridConfig(DEFAULT_TILE_X, DEFAULT_TILE_Y), | |
56 ] | 52 ] |
57 | 53 |
58 default_no_gpu = [cfg for cfg in default_configs if cfg['config'] != 'gpu'] | 54 default_no_gpu = [cfg for cfg in default_configs if cfg['config'] != 'gpu'] |
59 | 55 |
60 | 56 |
61 msaa4 = Config(config='msaa4', viewport=[str(DEFAULT_VIEWPORT_X), | 57 msaa4 = Config(config='msaa4', viewport=[str(DEFAULT_VIEWPORT_X), |
62 str(DEFAULT_VIEWPORT_Y)]) | 58 str(DEFAULT_VIEWPORT_Y)]) |
63 | 59 |
64 msaa16 = Config(config='msaa16', viewport=[str(DEFAULT_VIEWPORT_X), | 60 msaa16 = Config(config='msaa16', viewport=[str(DEFAULT_VIEWPORT_X), |
65 str(DEFAULT_VIEWPORT_Y)]) | 61 str(DEFAULT_VIEWPORT_Y)]) |
(...skipping 12 matching lines...) Expand all Loading... |
78 'nexus_s': default_no_gpu, | 74 'nexus_s': default_no_gpu, |
79 'xoom': default_configs, | 75 'xoom': default_configs, |
80 'galaxy_nexus': default_configs, | 76 'galaxy_nexus': default_configs, |
81 'nexus_4': default_configs + [msaa4], | 77 'nexus_4': default_configs + [msaa4], |
82 'nexus_7': default_configs, | 78 'nexus_7': default_configs, |
83 'nexus_10': default_configs + [msaa4], | 79 'nexus_10': default_configs + [msaa4], |
84 'razr_i': default_configs + [msaa4], | 80 'razr_i': default_configs + [msaa4], |
85 'intel_rhb': default_no_gpu, | 81 'intel_rhb': default_no_gpu, |
86 'default_msaa16': default_configs + [msaa16], | 82 'default_msaa16': default_configs + [msaa16], |
87 } | 83 } |
OLD | NEW |