| 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 'multiple_raster_threads': 'Multiple Raster Threads', | 96 'multiple_raster_threads': 'Multiple Raster Threads', |
| 97 'gpu_memory_buffer': 'GpuMemoryBuffer', |
| 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 27 matching lines...) Expand all Loading... |
| 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 }, |
| 140 'enabled_force_on': { | 141 'enabled_force_on': { |
| 141 'label': 'Force enabled', | 142 'label': 'Force enabled', |
| 142 'class': 'feature-green' | 143 'class': 'feature-green' |
| 143 }, | 144 }, |
| 145 'enabled_native_one_copy': { |
| 146 'label': 'Native implementation enabled (one-copy)', |
| 147 'class': 'feature-green' |
| 148 }, |
| 149 'enabled_native_zero_copy': { |
| 150 'label': 'Native implementation enabled (zero-copy)', |
| 151 'class': 'feature-green' |
| 152 }, |
| 144 }; | 153 }; |
| 145 | 154 |
| 146 // GPU info, basic | 155 // GPU info, basic |
| 147 var diagnosticsDiv = this.querySelector('.diagnostics'); | 156 var diagnosticsDiv = this.querySelector('.diagnostics'); |
| 148 var diagnosticsLoadingDiv = this.querySelector('.diagnostics-loading'); | 157 var diagnosticsLoadingDiv = this.querySelector('.diagnostics-loading'); |
| 149 var featureStatusList = this.querySelector('.feature-status-list'); | 158 var featureStatusList = this.querySelector('.feature-status-list'); |
| 150 var problemsDiv = this.querySelector('.problems-div'); | 159 var problemsDiv = this.querySelector('.problems-div'); |
| 151 var problemsList = this.querySelector('.problems-list'); | 160 var problemsList = this.querySelector('.problems-list'); |
| 152 var workaroundsDiv = this.querySelector('.workarounds-div'); | 161 var workaroundsDiv = this.querySelector('.workarounds-div'); |
| 153 var workaroundsList = this.querySelector('.workarounds-list'); | 162 var workaroundsList = this.querySelector('.workarounds-list'); |
| (...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 345 | 354 |
| 346 peg.innerHTML = ''; | 355 peg.innerHTML = ''; |
| 347 peg.appendChild(template); | 356 peg.appendChild(template); |
| 348 } | 357 } |
| 349 }; | 358 }; |
| 350 | 359 |
| 351 return { | 360 return { |
| 352 InfoView: InfoView | 361 InfoView: InfoView |
| 353 }; | 362 }; |
| 354 }); | 363 }); |
| OLD | NEW |