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 * @fileoverview This view displays information on the current GPU | 7 * @fileoverview This view displays information on the current GPU |
8 * hardware. Its primary usefulness is to allow users to copy-paste | 8 * hardware. Its primary usefulness is to allow users to copy-paste |
9 * their data in an easy to read format for bug reports. | 9 * their data in an easy to read format for bug reports. |
10 */ | 10 */ |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 'panel_fitting': 'Panel Fitting', | 94 'panel_fitting': 'Panel Fitting', |
95 'rasterization': 'Rasterization', | 95 'rasterization': 'Rasterization', |
96 'threaded_rasterization': 'Threaded Rasterization', | 96 'threaded_rasterization': 'Threaded Rasterization', |
97 }; | 97 }; |
98 | 98 |
99 var statusMap = { | 99 var statusMap = { |
100 'disabled_software': { | 100 'disabled_software': { |
101 'label': 'Software only. Hardware acceleration disabled', | 101 'label': 'Software only. Hardware acceleration disabled', |
102 'class': 'feature-yellow' | 102 'class': 'feature-yellow' |
103 }, | 103 }, |
104 'disabled_software_threaded': { | |
105 'label': 'Software only, threaded. Hardware acceleration disabled', | |
106 'class': 'feature-yellow' | |
107 }, | |
108 'disabled_off': { | 104 'disabled_off': { |
109 'label': 'Disabled', | 105 'label': 'Disabled', |
110 'class': 'feature-red' | 106 'class': 'feature-red' |
111 }, | 107 }, |
112 'disabled_off_ok': { | 108 'disabled_off_ok': { |
113 'label': 'Disabled', | 109 'label': 'Disabled', |
114 'class': 'feature-yellow' | 110 'class': 'feature-yellow' |
115 }, | 111 }, |
116 'unavailable_software': { | 112 'unavailable_software': { |
117 'label': 'Software only, hardware acceleration unavailable', | 113 'label': 'Software only, hardware acceleration unavailable', |
118 'class': 'feature-yellow' | 114 'class': 'feature-yellow' |
119 }, | 115 }, |
120 'unavailable_software_threaded': { | |
121 'label': 'Software only, threaded. Hardware acceleration unavailable', | |
122 'class': 'feature-yellow' | |
123 }, | |
124 'unavailable_off': { | 116 'unavailable_off': { |
125 'label': 'Unavailable', | 117 'label': 'Unavailable', |
126 'class': 'feature-red' | 118 'class': 'feature-red' |
127 }, | 119 }, |
128 'unavailable_off_ok': { | 120 'unavailable_off_ok': { |
129 'label': 'Unavailable', | 121 'label': 'Unavailable', |
130 'class': 'feature-yellow' | 122 'class': 'feature-yellow' |
131 }, | 123 }, |
132 'enabled_readback': { | 124 'enabled_readback': { |
133 'label': 'Hardware accelerated but at reduced performance', | 125 'label': 'Hardware accelerated but at reduced performance', |
134 'class': 'feature-yellow' | 126 'class': 'feature-yellow' |
135 }, | 127 }, |
136 'enabled_force': { | 128 'enabled_force': { |
137 'label': 'Hardware accelerated on all pages', | 129 'label': 'Hardware accelerated on all pages', |
138 'class': 'feature-green' | 130 'class': 'feature-green' |
139 }, | 131 }, |
140 'enabled_threaded': { | |
141 'label': 'Hardware accelerated and threaded', | |
142 'class': 'feature-green' | |
143 }, | |
144 'enabled': { | 132 'enabled': { |
145 'label': 'Hardware accelerated', | 133 'label': 'Hardware accelerated', |
146 'class': 'feature-green' | 134 'class': 'feature-green' |
147 }, | 135 }, |
148 'enabled_on': { | 136 'enabled_on': { |
149 'label': 'Enabled', | 137 'label': 'Enabled', |
150 'class': 'feature-green' | 138 'class': 'feature-green' |
151 } | 139 } |
152 }; | 140 }; |
153 | 141 |
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
361 | 349 |
362 peg.innerHTML = ''; | 350 peg.innerHTML = ''; |
363 peg.appendChild(template); | 351 peg.appendChild(template); |
364 } | 352 } |
365 }; | 353 }; |
366 | 354 |
367 return { | 355 return { |
368 InfoView: InfoView | 356 InfoView: InfoView |
369 }; | 357 }; |
370 }); | 358 }); |
OLD | NEW |