| 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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 var featureLabelMap = { | 76 var featureLabelMap = { |
| 77 '2d_canvas': 'Canvas', | 77 '2d_canvas': 'Canvas', |
| 78 '3d_css': '3D CSS', | 78 '3d_css': '3D CSS', |
| 79 'css_animation': 'CSS Animation', | 79 'css_animation': 'CSS Animation', |
| 80 'compositing': 'Compositing', | 80 'compositing': 'Compositing', |
| 81 'webgl': 'WebGL', | 81 'webgl': 'WebGL', |
| 82 'multisampling': 'WebGL multisampling', | 82 'multisampling': 'WebGL multisampling', |
| 83 'flash_3d': 'Flash 3D', | 83 'flash_3d': 'Flash 3D', |
| 84 'flash_stage3d': 'Flash Stage3D', | 84 'flash_stage3d': 'Flash Stage3D', |
| 85 'texture_sharing': 'Texture Sharing', | 85 'texture_sharing': 'Texture Sharing', |
| 86 'video_decode': 'Video Decode' | 86 'video_decode': 'Video Decode', |
| 87 // GPU Switching |
| 88 'gpu_switching': 'GPU Switching', |
| 87 }; | 89 }; |
| 88 var statusLabelMap = { | 90 var statusLabelMap = { |
| 89 'disabled_software': 'Software only. Hardware acceleration disabled.', | 91 'disabled_software': 'Software only. Hardware acceleration disabled.', |
| 90 'disabled_software_animated': 'Software animated.', | 92 'disabled_software_animated': 'Software animated.', |
| 91 'disabled_off': 'Unavailable. Hardware acceleration disabled.', | 93 'disabled_off': 'Unavailable. Hardware acceleration disabled.', |
| 92 'software': 'Software rendered. Hardware acceleration not enabled.', | 94 'software': 'Software rendered. Hardware acceleration not enabled.', |
| 93 'unavailable_off': 'Unavailable. Hardware acceleration unavailable', | 95 'unavailable_off': 'Unavailable. Hardware acceleration unavailable', |
| 94 'unavailable_software': | 96 'unavailable_software': |
| 95 'Software only, hardware acceleration unavailable', | 97 'Software only, hardware acceleration unavailable', |
| 96 'enabled_readback': 'Hardware accelerated, but at reduced performance', | 98 'enabled_readback': 'Hardware accelerated, but at reduced performance', |
| 97 'enabled_force': 'Hardware accelerated on all pages', | 99 'enabled_force': 'Hardware accelerated on all pages', |
| 98 'enabled_threaded': 'Hardware accelerated on demand and threaded', | 100 'enabled_threaded': 'Hardware accelerated on demand and threaded', |
| 99 'enabled_force_threaded': | 101 'enabled_force_threaded': |
| 100 'Hardware accelerated on all pages and threaded', | 102 'Hardware accelerated on all pages and threaded', |
| 101 'enabled': 'Hardware accelerated', | 103 'enabled': 'Hardware accelerated', |
| 102 'accelerated': 'Accelerated', | 104 'accelerated': 'Accelerated', |
| 103 'accelerated_threaded': 'Accelerated and threaded' | 105 'accelerated_threaded': 'Accelerated and threaded', |
| 106 // GPU Switching |
| 107 'gpu_switching_automatic': 'Automatic switching', |
| 108 'gpu_switching_force_discrete': 'Always on discrete GPU', |
| 109 'gpu_switching_force_integrated': 'Always on integrated GPU', |
| 104 }; | 110 }; |
| 105 | 111 |
| 106 var statusClassMap = { | 112 var statusClassMap = { |
| 107 'disabled_software': 'feature-yellow', | 113 'disabled_software': 'feature-yellow', |
| 108 'disabled_software_animated': 'feature-yellow', | 114 'disabled_software_animated': 'feature-yellow', |
| 109 'disabled_off': 'feature-red', | 115 'disabled_off': 'feature-red', |
| 110 'software': 'feature-yellow', | 116 'software': 'feature-yellow', |
| 111 'unavailable_off': 'feature-red', | 117 'unavailable_off': 'feature-red', |
| 112 'unavailable_software': 'feature-yellow', | 118 'unavailable_software': 'feature-yellow', |
| 113 'enabled_force': 'feature-green', | 119 'enabled_force': 'feature-green', |
| 114 'enabled_readback': 'feature-yellow', | 120 'enabled_readback': 'feature-yellow', |
| 115 'enabled_threaded': 'feature-green', | 121 'enabled_threaded': 'feature-green', |
| 116 'enabled_force_threaded': 'feature-green', | 122 'enabled_force_threaded': 'feature-green', |
| 117 'enabled': 'feature-green', | 123 'enabled': 'feature-green', |
| 118 'accelerated': 'feature-green', | 124 'accelerated': 'feature-green', |
| 119 'accelerated_threaded': 'feature-green' | 125 'accelerated_threaded': 'feature-green', |
| 126 // GPU Switching |
| 127 'gpu_switching_automatic': 'feature-green', |
| 128 'gpu_switching_force_discrete': 'feature-red', |
| 129 'gpu_switching_force_integrated': 'feature-red', |
| 120 }; | 130 }; |
| 121 | 131 |
| 122 // GPU info, basic | 132 // GPU info, basic |
| 123 var diagnosticsDiv = this.querySelector('.diagnostics'); | 133 var diagnosticsDiv = this.querySelector('.diagnostics'); |
| 124 var diagnosticsLoadingDiv = this.querySelector('.diagnostics-loading'); | 134 var diagnosticsLoadingDiv = this.querySelector('.diagnostics-loading'); |
| 125 var featureStatusList = this.querySelector('.feature-status-list'); | 135 var featureStatusList = this.querySelector('.feature-status-list'); |
| 126 var problemsDiv = this.querySelector('.problems-div'); | 136 var problemsDiv = this.querySelector('.problems-div'); |
| 127 var problemsList = this.querySelector('.problems-list'); | 137 var problemsList = this.querySelector('.problems-list'); |
| 128 var performanceDiv = this.querySelector('.performance-div'); | 138 var performanceDiv = this.querySelector('.performance-div'); |
| 129 var gpuInfo = browserBridge.gpuInfo; | 139 var gpuInfo = browserBridge.gpuInfo; |
| (...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 285 | 295 |
| 286 peg.innerHTML = ''; | 296 peg.innerHTML = ''; |
| 287 peg.appendChild(template); | 297 peg.appendChild(template); |
| 288 } | 298 } |
| 289 }; | 299 }; |
| 290 | 300 |
| 291 return { | 301 return { |
| 292 InfoView: InfoView | 302 InfoView: InfoView |
| 293 }; | 303 }; |
| 294 }); | 304 }); |
| OLD | NEW |