From 7e365cfe398655f7ba3761ff152ff62f529affd4 Mon Sep 17 00:00:00 2001 From: "zmo@chromium.org" Date: Fri, 21 Feb 2014 01:04:30 +0000 Subject: List gpu driver bug workaround reasons in about:gpu Before we only list information on why we disable a feature. It helps to also list information on why we apply a driver bug workaround. BUG=330785 TEST=about:gpu R=kbr@chromium.org, nduca@chromium.org Review URL: https://codereview.chromium.org/171453003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@252440 0039d316-1c4b-4281-b951-d872f2087c98 --- content/browser/resources/gpu/info_view.js | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) (limited to 'content/browser/resources/gpu/info_view.js') diff --git a/content/browser/resources/gpu/info_view.js b/content/browser/resources/gpu/info_view.js index a8fc3fc..a680d57 100644 --- a/content/browser/resources/gpu/info_view.js +++ b/content/browser/resources/gpu/info_view.js @@ -303,6 +303,35 @@ cr.define('gpu', function() { nbugs++; } + if (problem.affectedGpuSettings.length > 0) { + var brNode = document.createElement('br'); + problemEl.appendChild(brNode); + + var iNode = document.createElement('i'); + problemEl.appendChild(iNode); + + var headNode = document.createElement('span'); + if (problem.tag == 'disabledFeatures') + headNode.textContent = 'Disabled Features: '; + else // problem.tag == 'workarounds' + headNode.textContent = 'Applied Workarounds: '; + iNode.appendChild(headNode); + for (j = 0; j < problem.affectedGpuSettings.length; ++j) { + if (j > 0) { + var separateNode = document.createElement('span'); + separateNode.textContent = ', '; + iNode.appendChild(separateNode); + } + var nameNode = document.createElement('span'); + if (problem.tag == 'disabledFeatures') + nameNode.classList.add('feature-red'); + else // problem.tag == 'workarounds' + nameNode.classList.add('feature-yellow'); + nameNode.textContent = problem.affectedGpuSettings[j]; + iNode.appendChild(nameNode); + } + } + return problemEl; }, -- cgit v1.1