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

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

Issue 2756793003: Move GPU blacklist and driver bug workaround list from json to data struct. (Closed)
Patch Set: pure rebase Created 3 years, 8 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 252 matching lines...) Expand 10 before | Expand all | Expand 10 after
263 createProblemEl_: function(problem) { 263 createProblemEl_: function(problem) {
264 var problemEl; 264 var problemEl;
265 problemEl = document.createElement('li'); 265 problemEl = document.createElement('li');
266 266
267 // Description of issue 267 // Description of issue
268 var desc = document.createElement('a'); 268 var desc = document.createElement('a');
269 desc.textContent = problem.description; 269 desc.textContent = problem.description;
270 problemEl.appendChild(desc); 270 problemEl.appendChild(desc);
271 271
272 // Spacing ':' element 272 // Spacing ':' element
273 if (problem.crBugs.length + problem.webkitBugs.length > 0) { 273 if (problem.crBugs.length > 0) {
274 var tmp = document.createElement('span'); 274 var tmp = document.createElement('span');
275 tmp.textContent = ': '; 275 tmp.textContent = ': ';
276 problemEl.appendChild(tmp); 276 problemEl.appendChild(tmp);
277 } 277 }
278 278
279 var nbugs = 0; 279 var nbugs = 0;
280 var j; 280 var j;
281 281
282 // crBugs 282 // crBugs
283 for (j = 0; j < problem.crBugs.length; ++j) { 283 for (j = 0; j < problem.crBugs.length; ++j) {
284 if (nbugs > 0) { 284 if (nbugs > 0) {
285 var tmp = document.createElement('span'); 285 var tmp = document.createElement('span');
286 tmp.textContent = ', '; 286 tmp.textContent = ', ';
287 problemEl.appendChild(tmp); 287 problemEl.appendChild(tmp);
288 } 288 }
289 289
290 var link = document.createElement('a'); 290 var link = document.createElement('a');
291 var bugid = parseInt(problem.crBugs[j]); 291 var bugid = parseInt(problem.crBugs[j]);
292 link.textContent = bugid; 292 link.textContent = bugid;
293 link.href = 'http://crbug.com/' + bugid; 293 link.href = 'http://crbug.com/' + bugid;
294 problemEl.appendChild(link); 294 problemEl.appendChild(link);
295 nbugs++; 295 nbugs++;
296 } 296 }
297 297
298 for (j = 0; j < problem.webkitBugs.length; ++j) {
299 if (nbugs > 0) {
300 var tmp = document.createElement('span');
301 tmp.textContent = ', ';
302 problemEl.appendChild(tmp);
303 }
304
305 var link = document.createElement('a');
306 var bugid = parseInt(problem.webkitBugs[j]);
307 link.textContent = bugid;
308
309 link.href = 'https://bugs.webkit.org/show_bug.cgi?id=' + bugid;
310 problemEl.appendChild(link);
311 nbugs++;
312 }
313
314 if (problem.affectedGpuSettings.length > 0) { 298 if (problem.affectedGpuSettings.length > 0) {
315 var brNode = document.createElement('br'); 299 var brNode = document.createElement('br');
316 problemEl.appendChild(brNode); 300 problemEl.appendChild(brNode);
317 301
318 var iNode = document.createElement('i'); 302 var iNode = document.createElement('i');
319 problemEl.appendChild(iNode); 303 problemEl.appendChild(iNode);
320 304
321 var headNode = document.createElement('span'); 305 var headNode = document.createElement('span');
322 if (problem.tag == 'disabledFeatures') 306 if (problem.tag == 'disabledFeatures')
323 headNode.textContent = 'Disabled Features: '; 307 headNode.textContent = 'Disabled Features: ';
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
359 343
360 peg.innerHTML = ''; 344 peg.innerHTML = '';
361 peg.appendChild(template); 345 peg.appendChild(template);
362 } 346 }
363 }; 347 };
364 348
365 return { 349 return {
366 InfoView: InfoView 350 InfoView: InfoView
367 }; 351 };
368 }); 352 });
OLDNEW
« no previous file with comments | « content/browser/gpu/gpu_data_manager_testing_exceptions_autogen.h ('k') | content/public/browser/gpu_data_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698