Index: content/browser/gpu/gpu_data_manager.cc |
=================================================================== |
--- content/browser/gpu/gpu_data_manager.cc (revision 93215) |
+++ content/browser/gpu/gpu_data_manager.cc (working copy) |
@@ -47,7 +47,8 @@ |
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
GPUInfo gpu_info; |
- gpu_info_collector::CollectPreliminaryGraphicsInfo(&gpu_info); |
+ allows_gpu_access_ = |
+ gpu_info_collector::CollectPreliminaryGraphicsInfo(&gpu_info); |
UpdateGpuInfo(gpu_info); |
#if defined(OS_MACOSX) |
@@ -142,6 +143,8 @@ |
} |
bool GpuDataManager::GpuAccessAllowed() { |
+ if (!allows_gpu_access_) |
+ return false; |
// We only need to block GPU process if more features are disallowed other |
// than those in the preliminary gpu feature flags because the latter work |
// through renderer commandline switches. |