Commit cdf394e2 authored by Maggie Chen's avatar Maggie Chen Committed by Commit Bot

Move the DX12 info histogram recording from GPU to browser

Move GPU.SupportsDX12 and GPU.D3D12FeatureLevel from the GPU process to
the browser process.

These two histograms are lost when they are recorded in the
info-collection GPU process. They are not allocated in the persistent
histogram memory and the GPU process is terminated right after the
histogram data is written. To preserve the data, we now record the
histograms in the browser process.

Bug: 775983, 1149617
Change-Id: Ia31195cfe5cc9a6ac86de830b53046285a49843e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2542364Reviewed-by: default avatarZhenyao Mo <zmo@chromium.org>
Commit-Queue: Maggie Chen <magchen@chromium.org>
Cr-Commit-Position: refs/heads/master@{#828030}
parent 4d47eccd
......@@ -61,8 +61,6 @@ void InfoCollectionGpuServiceImpl::
DCHECK(main_runner_->BelongsToCurrentThread());
uint32_t d3d12_feature_level = gpu::GetGpuSupportedD3D12Version();
gpu::RecordGpuSupportedDx12VersionHistograms(d3d12_feature_level);
io_runner_->PostTask(FROM_HERE,
base::BindOnce(std::move(callback), d3d12_feature_level,
device_perf_info_));
......
......@@ -722,6 +722,8 @@ void GpuDataManagerImplPrivate::RequestGpuSupportedDx12Version(bool delayed) {
// NotifyGpuInfoUpdate().
manager->UpdateDevicePerfInfo(device_perf_info);
manager->TerminateInfoCollectionGpuProcess();
gpu::RecordGpuSupportedDx12VersionHistograms(
d3d12_feature_level);
}));
},
delta);
......
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