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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 | 57 |
58 default_no_gpu = [cfg for cfg in default_configs if cfg['config'] != 'gpu'] | 58 default_no_gpu = [cfg for cfg in default_configs if cfg['config'] != 'gpu'] |
59 | 59 |
60 | 60 |
61 msaa4 = Config(config='msaa4', viewport=[str(DEFAULT_VIEWPORT_X), | 61 msaa4 = Config(config='msaa4', viewport=[str(DEFAULT_VIEWPORT_X), |
62 str(DEFAULT_VIEWPORT_Y)]) | 62 str(DEFAULT_VIEWPORT_Y)]) |
63 | 63 |
64 msaa16 = Config(config='msaa16', viewport=[str(DEFAULT_VIEWPORT_X), | 64 msaa16 = Config(config='msaa16', viewport=[str(DEFAULT_VIEWPORT_X), |
65 str(DEFAULT_VIEWPORT_Y)]) | 65 str(DEFAULT_VIEWPORT_Y)]) |
66 | 66 |
67 viewport_angle = Config(config='angle', | 67 viewport_angle = Config(config='angle', viewport=[str(DEFAULT_VIEWPORT_X), |
68 viewport=[DEFAULT_VIEWPORT_X, DEFAULT_VIEWPORT_Y]) | 68 str(DEFAULT_VIEWPORT_Y)]) |
69 | 69 |
70 # This dictionary defines the sets of configs for all platforms. Each config is | 70 # This dictionary defines the sets of configs for all platforms. Each config is |
71 # a dictionary of key/value pairs directly corresponding to the command-line | 71 # a dictionary of key/value pairs directly corresponding to the command-line |
72 # flags passed to bench_pictures. | 72 # flags passed to bench_pictures. |
73 bench_pictures_cfg = { | 73 bench_pictures_cfg = { |
74 'angle': [viewport_angle], | 74 'angle': [viewport_angle], |
75 'debug': [ViewportBitmapConfig(DEFAULT_VIEWPORT_X, DEFAULT_VIEWPORT_Y)], | 75 'debug': [ViewportBitmapConfig(DEFAULT_VIEWPORT_X, DEFAULT_VIEWPORT_Y)], |
76 'default': default_configs, | 76 'default': default_configs, |
77 'no_gpu': default_no_gpu, | 77 'no_gpu': default_no_gpu, |
78 'nexus_s': default_no_gpu, | 78 'nexus_s': default_no_gpu, |
79 'xoom': default_configs, | 79 'xoom': default_configs, |
80 'galaxy_nexus': default_configs, | 80 'galaxy_nexus': default_configs, |
81 'nexus_4': default_configs + [msaa4], | 81 'nexus_4': default_configs + [msaa4], |
82 'nexus_7': default_configs, | 82 'nexus_7': default_configs, |
83 'nexus_10': default_configs + [msaa4], | 83 'nexus_10': default_configs + [msaa4], |
84 'razr_i': default_configs + [msaa4], | 84 'razr_i': default_configs + [msaa4], |
85 'intel_rhb': default_no_gpu, | 85 'intel_rhb': default_no_gpu, |
86 'default_msaa16': default_configs + [msaa16], | 86 'default_msaa16': default_configs + [msaa16], |
87 } | 87 } |
OLD | NEW |