Skip to content

Commit

Permalink
refactor: remove dead code in NeedsCompleteGpuInfoCollection (#30855)
Browse files Browse the repository at this point in the history
  • Loading branch information
codebytere committed Sep 7, 2021
1 parent 22abbf7 commit 9891ff1
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions shell/browser/api/gpuinfo_manager.cc
Expand Up @@ -31,9 +31,7 @@ GPUInfoManager::~GPUInfoManager() {
// Based on
// 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 {
#if defined(OS_MAC)
return gpu_data_manager_->GetGPUInfo().gl_vendor.empty();
#elif defined(OS_WIN)
#if defined(OS_WIN)
return gpu_data_manager_->DxdiagDx12VulkanRequested() &&
gpu_data_manager_->GetGPUInfo().dx_diagnostics.IsEmpty();
#else
Expand Down

0 comments on commit 9891ff1

Please sign in to comment.