diff options
Diffstat (limited to 'content/browser/gpu/gpu_process_host.cc')
-rw-r--r-- | content/browser/gpu/gpu_process_host.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/content/browser/gpu/gpu_process_host.cc b/content/browser/gpu/gpu_process_host.cc index fa88129..560fed2a 100644 --- a/content/browser/gpu/gpu_process_host.cc +++ b/content/browser/gpu/gpu_process_host.cc @@ -347,7 +347,7 @@ GpuProcessHost* GpuProcessHost::Get(GpuProcessKind kind, // Don't grant further access to GPU if it is not allowed. GpuDataManagerImpl* gpu_data_manager = GpuDataManagerImpl::GetInstance(); DCHECK(gpu_data_manager); - if (!gpu_data_manager->GpuAccessAllowed()) + if (!gpu_data_manager->GpuAccessAllowed(NULL)) return NULL; if (g_gpu_process_hosts[kind] && ValidateHost(g_gpu_process_hosts[kind])) @@ -705,7 +705,7 @@ void GpuProcessHost::EstablishGpuChannel( TRACE_EVENT0("gpu", "GpuProcessHost::EstablishGpuChannel"); // If GPU features are already blacklisted, no need to establish the channel. - if (!GpuDataManagerImpl::GetInstance()->GpuAccessAllowed()) { + if (!GpuDataManagerImpl::GetInstance()->GpuAccessAllowed(NULL)) { callback.Run(IPC::ChannelHandle(), GPUInfo()); return; } @@ -791,7 +791,7 @@ void GpuProcessHost::OnChannelEstablished( // Currently if any of the GPU features are blacklisted, we don't establish a // GPU channel. if (!channel_handle.name.empty() && - !GpuDataManagerImpl::GetInstance()->GpuAccessAllowed()) { + !GpuDataManagerImpl::GetInstance()->GpuAccessAllowed(NULL)) { Send(new GpuMsg_CloseChannel(channel_handle)); callback.Run(IPC::ChannelHandle(), GPUInfo()); RouteOnUIThread(GpuHostMsg_OnLogMessage( |