refactor: remove dead code in NeedsCompleteGpuInfoCollection (#30855)

Refs https://chromium-review.googlesource.com/c/chromium/src/+/1208362
This commit is contained in:
Shelley Vohr 2021-09-08 01:42:03 +02:00 committed by GitHub
parent 22abbf76fb
commit 9891ff14a7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -31,9 +31,7 @@ GPUInfoManager::~GPUInfoManager() {
// Based on // Based on
// https://chromium.googlesource.com/chromium/src.git/+/69.0.3497.106/content/browser/gpu/gpu_data_manager_impl_private.cc#838 // https://chromium.googlesource.com/chromium/src.git/+/69.0.3497.106/content/browser/gpu/gpu_data_manager_impl_private.cc#838
bool GPUInfoManager::NeedsCompleteGpuInfoCollection() const { bool GPUInfoManager::NeedsCompleteGpuInfoCollection() const {
#if defined(OS_MAC) #if defined(OS_WIN)
return gpu_data_manager_->GetGPUInfo().gl_vendor.empty();
#elif defined(OS_WIN)
return gpu_data_manager_->DxdiagDx12VulkanRequested() && return gpu_data_manager_->DxdiagDx12VulkanRequested() &&
gpu_data_manager_->GetGPUInfo().dx_diagnostics.IsEmpty(); gpu_data_manager_->GetGPUInfo().dx_diagnostics.IsEmpty();
#else #else