Commit 54faa06e authored by glider@chromium.org's avatar glider@chromium.org

Force the current card to be blacklisted if all of its features are disabled.

Review URL: https://chromiumcodereview.appspot.com/10824044

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@149252 0039d316-1c4b-4281-b951-d872f2087c98
parent c4d866d7
......@@ -256,7 +256,9 @@ GpuProcessHost* GpuProcessHost::Get(GpuProcessKind kind,
// Don't grant further access to GPU if it is not allowed.
GpuDataManagerImpl* gpu_data_manager = GpuDataManagerImpl::GetInstance();
if (gpu_data_manager != NULL && !gpu_data_manager->GpuAccessAllowed())
if (gpu_data_manager != NULL &&
(!gpu_data_manager->GpuAccessAllowed() ||
gpu_data_manager->GetGpuFeatureType() == content::GPU_FEATURE_TYPE_ALL))
return NULL;
if (g_gpu_process_hosts[kind] && HostIsValid(g_gpu_process_hosts[kind]))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment