Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(168)

Side by Side Diff: chrome/browser/resources/gpu_internals/info_view.js

Issue 10915219: Add capability for GPU blacklist to manage GPU switching. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 var featureLabelMap = { 132 var featureLabelMap = {
133 '2d_canvas': 'Canvas', 133 '2d_canvas': 'Canvas',
134 '3d_css': '3D CSS', 134 '3d_css': '3D CSS',
135 'css_animation': 'CSS Animation', 135 'css_animation': 'CSS Animation',
136 'compositing': 'Compositing', 136 'compositing': 'Compositing',
137 'webgl': 'WebGL', 137 'webgl': 'WebGL',
138 'multisampling': 'WebGL multisampling', 138 'multisampling': 'WebGL multisampling',
139 'flash_3d': 'Flash 3D', 139 'flash_3d': 'Flash 3D',
140 'flash_stage3d': 'Flash Stage3D', 140 'flash_stage3d': 'Flash Stage3D',
141 'texture_sharing': 'Texture Sharing', 141 'texture_sharing': 'Texture Sharing',
142 'video_decode': 'Video Decode' 142 'video_decode': 'Video Decode',
143 // GPU Switching
144 'gpu_switching': 'GPU Switching',
143 }; 145 };
144 var statusLabelMap = { 146 var statusLabelMap = {
145 'disabled_software': 'Software only. Hardware acceleration disabled.', 147 'disabled_software': 'Software only. Hardware acceleration disabled.',
146 'disabled_software_animated': 'Software animated.', 148 'disabled_software_animated': 'Software animated.',
147 'disabled_off': 'Unavailable. Hardware acceleration disabled.', 149 'disabled_off': 'Unavailable. Hardware acceleration disabled.',
148 'software': 'Software rendered. Hardware acceleration not enabled.', 150 'software': 'Software rendered. Hardware acceleration not enabled.',
149 'unavailable_off': 'Unavailable. Hardware acceleration unavailable', 151 'unavailable_off': 'Unavailable. Hardware acceleration unavailable',
150 'unavailable_software': 152 'unavailable_software':
151 'Software only, hardware acceleration unavailable', 153 'Software only, hardware acceleration unavailable',
152 'enabled_readback': 'Hardware accelerated, but at reduced performance', 154 'enabled_readback': 'Hardware accelerated, but at reduced performance',
153 'enabled_force': 'Hardware accelerated on all pages', 155 'enabled_force': 'Hardware accelerated on all pages',
154 'enabled_threaded': 'Hardware accelerated on demand and threaded', 156 'enabled_threaded': 'Hardware accelerated on demand and threaded',
155 'enabled_force_threaded': 157 'enabled_force_threaded':
156 'Hardware accelerated on all pages and threaded', 158 'Hardware accelerated on all pages and threaded',
157 'enabled': 'Hardware accelerated', 159 'enabled': 'Hardware accelerated',
158 'accelerated': 'Accelerated', 160 'accelerated': 'Accelerated',
159 'accelerated_threaded': 'Accelerated and threaded' 161 'accelerated_threaded': 'Accelerated and threaded',
162 // GPU Switching
163 'gpu_switching_automatic': 'Automatic switching',
164 'gpu_switching_force_discrete': 'Always on discrete GPU',
165 'gpu_switching_force_integrated': 'Always on integrated GPU',
160 }; 166 };
161 167
162 var statusClassMap = { 168 var statusClassMap = {
163 'disabled_software': 'feature-yellow', 169 'disabled_software': 'feature-yellow',
164 'disabled_software_animated': 'feature-yellow', 170 'disabled_software_animated': 'feature-yellow',
165 'disabled_off': 'feature-red', 171 'disabled_off': 'feature-red',
166 'software': 'feature-yellow', 172 'software': 'feature-yellow',
167 'unavailable_off': 'feature-red', 173 'unavailable_off': 'feature-red',
168 'unavailable_software': 'feature-yellow', 174 'unavailable_software': 'feature-yellow',
169 'enabled_force': 'feature-green', 175 'enabled_force': 'feature-green',
170 'enabled_readback': 'feature-yellow', 176 'enabled_readback': 'feature-yellow',
171 'enabled_threaded': 'feature-green', 177 'enabled_threaded': 'feature-green',
172 'enabled_force_threaded': 'feature-green', 178 'enabled_force_threaded': 'feature-green',
173 'enabled': 'feature-green', 179 'enabled': 'feature-green',
174 'accelerated': 'feature-green', 180 'accelerated': 'feature-green',
175 'accelerated_threaded': 'feature-green' 181 'accelerated_threaded': 'feature-green',
182 // GPU Switching
183 'gpu_switching_automatic': 'feature-green',
184 'gpu_switching_force_discrete': 'feature-red',
185 'gpu_switching_force_integrated': 'feature-red',
176 }; 186 };
177 187
178 // GPU info, basic 188 // GPU info, basic
179 var diagnosticsDiv = this.querySelector('.diagnostics'); 189 var diagnosticsDiv = this.querySelector('.diagnostics');
180 var diagnosticsLoadingDiv = this.querySelector('.diagnostics-loading'); 190 var diagnosticsLoadingDiv = this.querySelector('.diagnostics-loading');
181 var featureStatusList = this.querySelector('.feature-status-list'); 191 var featureStatusList = this.querySelector('.feature-status-list');
182 var problemsDiv = this.querySelector('.problems-div'); 192 var problemsDiv = this.querySelector('.problems-div');
183 var problemsList = this.querySelector('.problems-list'); 193 var problemsList = this.querySelector('.problems-list');
184 var performanceDiv = this.querySelector('.performance-div'); 194 var performanceDiv = this.querySelector('.performance-div');
185 var gpuInfo = browserBridge.gpuInfo; 195 var gpuInfo = browserBridge.gpuInfo;
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
341 351
342 peg.innerHTML = ''; 352 peg.innerHTML = '';
343 peg.appendChild(template); 353 peg.appendChild(template);
344 } 354 }
345 }; 355 };
346 356
347 return { 357 return {
348 InfoView: InfoView 358 InfoView: InfoView
349 }; 359 };
350 }); 360 });
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/webui/gpu_internals_ui.cc » ('j') | content/browser/gpu/gpu_blacklist.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698