From 9834372e712aab2753fa453efe09d3f230acaa2f Mon Sep 17 00:00:00 2001 From: "skyostil@google.com" Date: Wed, 30 May 2012 11:38:51 +0000 Subject: Don't throw away GPU data on non-PCI architectures GpuDataManagerImpl checks whether we know the GPU's PCI vendor and device id. If not, the collected GPU data is thrown away and is not shown in about:gpu. Since most non-x86 architectures are also non-PCI, only do this check on the x86 family. BUG=130013 TEST=none Review URL: https://chromiumcodereview.appspot.com/10456005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@139523 0039d316-1c4b-4281-b951-d872f2087c98 --- content/browser/gpu/gpu_data_manager_impl.cc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'content') diff --git a/content/browser/gpu/gpu_data_manager_impl.cc b/content/browser/gpu/gpu_data_manager_impl.cc index 076cec6..bd0b069 100644 --- a/content/browser/gpu/gpu_data_manager_impl.cc +++ b/content/browser/gpu/gpu_data_manager_impl.cc @@ -90,10 +90,12 @@ void GpuDataManagerImpl::UpdateGpuInfo(const content::GPUInfo& gpu_info) { { base::AutoLock auto_lock(gpu_info_lock_); - if (gpu_info.gpu.vendor_id && gpu_info.gpu.device_id) - gpu_info_ = gpu_info; - else +#if defined(ARCH_CPU_X86_FAMILY) + if (!gpu_info.gpu.vendor_id || !gpu_info.gpu.device_id) gpu_info_.finalized = true; + else +#endif + gpu_info_ = gpu_info; complete_gpu_info_available_ = complete_gpu_info_available_ || gpu_info_.finalized; complete_gpu_info_already_requested_ = -- cgit v1.1