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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 'multisampling': 'WebGL multisampling', | 87 'multisampling': 'WebGL multisampling', |
88 'flash_3d': 'Flash', | 88 'flash_3d': 'Flash', |
89 'flash_stage3d': 'Flash Stage3D', | 89 'flash_stage3d': 'Flash Stage3D', |
90 'flash_stage3d_baseline': 'Flash Stage3D Baseline profile', | 90 'flash_stage3d_baseline': 'Flash Stage3D Baseline profile', |
91 'texture_sharing': 'Texture Sharing', | 91 'texture_sharing': 'Texture Sharing', |
92 'video_decode': 'Video Decode', | 92 'video_decode': 'Video Decode', |
93 'video_encode': 'Video Encode', | 93 'video_encode': 'Video Encode', |
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 'multiple_raster_threads': 'Multiple Raster Threads', |
97 }; | 98 }; |
98 | 99 |
99 var statusMap = { | 100 var statusMap = { |
100 'disabled_software': { | 101 'disabled_software': { |
101 'label': 'Software only. Hardware acceleration disabled', | 102 'label': 'Software only. Hardware acceleration disabled', |
102 'class': 'feature-yellow' | 103 'class': 'feature-yellow' |
103 }, | 104 }, |
104 'disabled_off': { | 105 'disabled_off': { |
105 'label': 'Disabled', | 106 'label': 'Disabled', |
106 'class': 'feature-red' | 107 'class': 'feature-red' |
(...skipping 22 matching lines...) Expand all Loading... |
129 'label': 'Hardware accelerated on all pages', | 130 'label': 'Hardware accelerated on all pages', |
130 'class': 'feature-green' | 131 'class': 'feature-green' |
131 }, | 132 }, |
132 'enabled': { | 133 'enabled': { |
133 'label': 'Hardware accelerated', | 134 'label': 'Hardware accelerated', |
134 'class': 'feature-green' | 135 'class': 'feature-green' |
135 }, | 136 }, |
136 'enabled_on': { | 137 'enabled_on': { |
137 'label': 'Enabled', | 138 'label': 'Enabled', |
138 'class': 'feature-green' | 139 'class': 'feature-green' |
139 } | 140 }, |
| 141 'enabled_force_on': { |
| 142 'label': 'Force enabled', |
| 143 'class': 'feature-green' |
| 144 }, |
140 }; | 145 }; |
141 | 146 |
142 // GPU info, basic | 147 // GPU info, basic |
143 var diagnosticsDiv = this.querySelector('.diagnostics'); | 148 var diagnosticsDiv = this.querySelector('.diagnostics'); |
144 var diagnosticsLoadingDiv = this.querySelector('.diagnostics-loading'); | 149 var diagnosticsLoadingDiv = this.querySelector('.diagnostics-loading'); |
145 var featureStatusList = this.querySelector('.feature-status-list'); | 150 var featureStatusList = this.querySelector('.feature-status-list'); |
146 var problemsDiv = this.querySelector('.problems-div'); | 151 var problemsDiv = this.querySelector('.problems-div'); |
147 var problemsList = this.querySelector('.problems-list'); | 152 var problemsList = this.querySelector('.problems-list'); |
148 var workaroundsDiv = this.querySelector('.workarounds-div'); | 153 var workaroundsDiv = this.querySelector('.workarounds-div'); |
149 var workaroundsList = this.querySelector('.workarounds-list'); | 154 var workaroundsList = this.querySelector('.workarounds-list'); |
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
349 | 354 |
350 peg.innerHTML = ''; | 355 peg.innerHTML = ''; |
351 peg.appendChild(template); | 356 peg.appendChild(template); |
352 } | 357 } |
353 }; | 358 }; |
354 | 359 |
355 return { | 360 return { |
356 InfoView: InfoView | 361 InfoView: InfoView |
357 }; | 362 }; |
358 }); | 363 }); |
OLD | NEW |