Index: content/browser/gpu/gpu_process_host.cc |
=================================================================== |
--- content/browser/gpu/gpu_process_host.cc (revision 148930) |
+++ content/browser/gpu/gpu_process_host.cc (working copy) |
@@ -256,7 +256,8 @@ |
// 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->GetGpuFeatureType() == content::GPU_FEATURE_TYPE_ALL) |
Zhenyao Mo
2012/07/30 17:03:19
I think you should also keep the original !GpuAcce
Alexander Potapenko
2012/07/31 09:17:55
Done.
|
return NULL; |
if (g_gpu_process_hosts[kind] && HostIsValid(g_gpu_process_hosts[kind])) |