summaryrefslogtreecommitdiffstats
path: root/content/browser/resources/gpu/info_view.js
diff options
context:
space:
mode:
authorzmo@chromium.org <zmo@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-02-21 01:04:30 +0000
committerzmo@chromium.org <zmo@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-02-21 01:04:30 +0000
commit7e365cfe398655f7ba3761ff152ff62f529affd4 (patch)
tree0e18141bed960cf0aa92528cf2f0570fc7bab3f0 /content/browser/resources/gpu/info_view.js
parent69bca38b0b285acc937791f68a518bbc868c08fd (diff)
downloadchromium_src-7e365cfe398655f7ba3761ff152ff62f529affd4.zip
chromium_src-7e365cfe398655f7ba3761ff152ff62f529affd4.tar.gz
chromium_src-7e365cfe398655f7ba3761ff152ff62f529affd4.tar.bz2
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
Diffstat (limited to 'content/browser/resources/gpu/info_view.js')
-rw-r--r--content/browser/resources/gpu/info_view.js29
1 files changed, 29 insertions, 0 deletions
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;
},