Skip to content

Commit

Permalink
refactor: remove dead code in NeedsCompleteGpuInfoCollection (#30876)
Browse files Browse the repository at this point in the history
Refs https://chromium-review.googlesource.com/c/chromium/src/+/1208362

Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com>
  • Loading branch information
trop[bot] and codebytere committed Sep 8, 2021
1 parent 6f67e50 commit 5e9dca5
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 5e9dca5

Please sign in to comment.