diff options
author | zmo@chromium.org <zmo@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-05-07 00:12:55 +0000 |
---|---|---|
committer | zmo@chromium.org <zmo@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-05-07 00:12:55 +0000 |
commit | a0401380072097ae9a3b34ed900299f26ef9bf6d (patch) | |
tree | 1863e20cfb1b55649c91850e545043e6f26fe5d2 /chrome/browser/gpu | |
parent | 858ddc0adbeb9fb56a5ea54aed4b488258cb3851 (diff) | |
download | chromium_src-a0401380072097ae9a3b34ed900299f26ef9bf6d.zip chromium_src-a0401380072097ae9a3b34ed900299f26ef9bf6d.tar.gz chromium_src-a0401380072097ae9a3b34ed900299f26ef9bf6d.tar.bz2 |
Provide a reason why GPU access is blocked.
This provides better information in about:gpu, which helps us to better diagnose GPU feature failures.
Also, move the gpu access blocked message to the top as this is the most important message as compared with individual blacklist entry messages.
BUG=237393
TEST=about:gpu shows gpu process fails to launch because of settings where gpu is turned off
R=joi@chromium.org, kbr@chromium.org, sky@chromium.org, thestig@chromium.org
Review URL: https://codereview.chromium.org/14697014
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@198570 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/gpu')
-rw-r--r-- | chrome/browser/gpu/gpu_feature_checker.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/browser/gpu/gpu_feature_checker.cc b/chrome/browser/gpu/gpu_feature_checker.cc index 23e0fb1..084f0c8 100644 --- a/chrome/browser/gpu/gpu_feature_checker.cc +++ b/chrome/browser/gpu/gpu_feature_checker.cc @@ -14,7 +14,7 @@ namespace { // GPU info has been collected in a GPU process. bool IsFeatureAllowed(content::GpuDataManager* manager, content::GpuFeatureType feature) { - return (manager->GpuAccessAllowed() && + return (manager->GpuAccessAllowed(NULL) && !manager->IsFeatureBlacklisted(feature)); } |