Commit e21324d3 authored by Zhenyao Mo's avatar Zhenyao Mo Committed by Commit Bot

Don't collect full GPU info or D3D12/Vulkan info if in-process-gpu.

Otherwise it will trigger a gl_factory.cc assertion.

BUG=831168
TEST=chrome --in-process-gpu
R=oetuaho@nvidia.com

Change-Id: Ib50dd4350619d516d88bb30412d84a0f2644f1d5
Reviewed-on: https://chromium-review.googlesource.com/1024859Reviewed-by: default avatarChris Blume <cblume@chromium.org>
Commit-Queue: Zhenyao Mo <zmo@chromium.org>
Cr-Commit-Position: refs/heads/master@{#553201}
parent 4490a054
......@@ -333,6 +333,8 @@ void GpuDataManagerImplPrivate::RequestCompleteGpuInfoIfNeeded() {
return;
if (!GpuAccessAllowed(nullptr))
return;
if (in_process_gpu_)
return;
complete_gpu_info_already_requested_ = true;
......@@ -352,6 +354,8 @@ void GpuDataManagerImplPrivate::RequestCompleteGpuInfoIfNeeded() {
void GpuDataManagerImplPrivate::RequestGpuSupportedRuntimeVersion() {
#if defined(OS_WIN)
if (in_process_gpu_)
return;
base::OnceClosure task = base::BindOnce([]() {
GpuProcessHost* host = GpuProcessHost::Get(
GpuProcessHost::GPU_PROCESS_KIND_UNSANDBOXED, true /* force_create */);
......
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