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

Side by Side Diff: content/browser/resources/gpu/info_view.js

Issue 1018463002: Deprecate WinSAT support in Chromium. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix gpu_unittests Created 5 years, 9 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
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 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 }; 145 };
146 146
147 // GPU info, basic 147 // GPU info, basic
148 var diagnosticsDiv = this.querySelector('.diagnostics'); 148 var diagnosticsDiv = this.querySelector('.diagnostics');
149 var diagnosticsLoadingDiv = this.querySelector('.diagnostics-loading'); 149 var diagnosticsLoadingDiv = this.querySelector('.diagnostics-loading');
150 var featureStatusList = this.querySelector('.feature-status-list'); 150 var featureStatusList = this.querySelector('.feature-status-list');
151 var problemsDiv = this.querySelector('.problems-div'); 151 var problemsDiv = this.querySelector('.problems-div');
152 var problemsList = this.querySelector('.problems-list'); 152 var problemsList = this.querySelector('.problems-list');
153 var workaroundsDiv = this.querySelector('.workarounds-div'); 153 var workaroundsDiv = this.querySelector('.workarounds-div');
154 var workaroundsList = this.querySelector('.workarounds-list'); 154 var workaroundsList = this.querySelector('.workarounds-list');
155 var performanceDiv = this.querySelector('.performance-div');
156 var gpuInfo = browserBridge.gpuInfo; 155 var gpuInfo = browserBridge.gpuInfo;
157 var i; 156 var i;
158 if (gpuInfo) { 157 if (gpuInfo) {
159 // Not using jstemplate here for blacklist status because we construct 158 // Not using jstemplate here for blacklist status because we construct
160 // href from data, which jstemplate can't seem to do. 159 // href from data, which jstemplate can't seem to do.
161 if (gpuInfo.featureStatus) { 160 if (gpuInfo.featureStatus) {
162 // feature status list 161 // feature status list
163 featureStatusList.textContent = ''; 162 featureStatusList.textContent = '';
164 for (var featureName in gpuInfo.featureStatus.featureStatus) { 163 for (var featureName in gpuInfo.featureStatus.featureStatus) {
165 var featureStatus = 164 var featureStatus =
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
216 } else { 215 } else {
217 featureStatusList.textContent = ''; 216 featureStatusList.textContent = '';
218 problemsList.hidden = true; 217 problemsList.hidden = true;
219 workaroundsList.hidden = true; 218 workaroundsList.hidden = true;
220 } 219 }
221 if (gpuInfo.basic_info) 220 if (gpuInfo.basic_info)
222 this.setTable_('basic-info', gpuInfo.basic_info); 221 this.setTable_('basic-info', gpuInfo.basic_info);
223 else 222 else
224 this.setTable_('basic-info', []); 223 this.setTable_('basic-info', []);
225 224
226 if (gpuInfo.performance_info) {
227 performanceDiv.hidden = false;
228 this.setTable_('performance-info', gpuInfo.performance_info);
229 } else {
230 performanceDiv.hidden = true;
231 }
232
233 if (gpuInfo.diagnostics) { 225 if (gpuInfo.diagnostics) {
234 diagnosticsDiv.hidden = false; 226 diagnosticsDiv.hidden = false;
235 diagnosticsLoadingDiv.hidden = true; 227 diagnosticsLoadingDiv.hidden = true;
236 $('diagnostics-table').hidden = false; 228 $('diagnostics-table').hidden = false;
237 this.setTable_('diagnostics-table', gpuInfo.diagnostics); 229 this.setTable_('diagnostics-table', gpuInfo.diagnostics);
238 } else if (gpuInfo.diagnostics === null) { 230 } else if (gpuInfo.diagnostics === null) {
239 // gpu_internals.cc sets diagnostics to null when it is being loaded 231 // gpu_internals.cc sets diagnostics to null when it is being loaded
240 diagnosticsDiv.hidden = false; 232 diagnosticsDiv.hidden = false;
241 diagnosticsLoadingDiv.hidden = false; 233 diagnosticsLoadingDiv.hidden = false;
242 $('diagnostics-table').hidden = true; 234 $('diagnostics-table').hidden = true;
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
354 346
355 peg.innerHTML = ''; 347 peg.innerHTML = '';
356 peg.appendChild(template); 348 peg.appendChild(template);
357 } 349 }
358 }; 350 };
359 351
360 return { 352 return {
361 InfoView: InfoView 353 InfoView: InfoView
362 }; 354 };
363 }); 355 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698