Index: content/browser/gpu/gpu_data_manager_impl.cc |
diff --git a/content/browser/gpu/gpu_data_manager_impl.cc b/content/browser/gpu/gpu_data_manager_impl.cc |
index 0d5202676762de99ed03af43cad758a6407fc045..0c74a29bdcf0d0025317a89c2863504a25a8c2e7 100644 |
--- a/content/browser/gpu/gpu_data_manager_impl.cc |
+++ b/content/browser/gpu/gpu_data_manager_impl.cc |
@@ -22,10 +22,6 @@ |
void GpuDataManagerImpl::InitializeForTesting( |
const std::string& gpu_blacklist_json, const gpu::GPUInfo& gpu_info) { |
base::AutoLock auto_lock(lock_); |
- // Relax the cross-thread access restriction to non-thread-safe RefCount. |
- // See the comment in Initialize(). |
- base::ScopedAllowCrossThreadRefCountAccess |
- allow_cross_thread_ref_count_access; |
private_->InitializeForTesting(gpu_blacklist_json, gpu_info); |
} |
@@ -150,20 +146,11 @@ |
void GpuDataManagerImpl::Initialize() { |
base::AutoLock auto_lock(lock_); |
- // Relax the cross-thread access restriction to non-thread-safe RefCount. |
- // GpuDataManagerImplPrivate has GpuControlLists, which touches |
- // non-thread-safe GpuControlListEntry RefCount in the lock. |
- base::ScopedAllowCrossThreadRefCountAccess |
- allow_cross_thread_ref_count_access; |
private_->Initialize(); |
} |
void GpuDataManagerImpl::UpdateGpuInfo(const gpu::GPUInfo& gpu_info) { |
base::AutoLock auto_lock(lock_); |
- // Relax the cross-thread access restriction to non-thread-safe RefCount. |
- // See the comment in Initialize(). |
- base::ScopedAllowCrossThreadRefCountAccess |
- allow_cross_thread_ref_count_access; |
private_->UpdateGpuInfo(gpu_info); |
} |
@@ -269,10 +256,6 @@ |
bool GpuDataManagerImpl::UpdateActiveGpu(uint32_t vendor_id, |
uint32_t device_id) { |
base::AutoLock auto_lock(lock_); |
- // Relax the cross-thread access restriction to non-thread-safe RefCount. |
- // See the comment in Initialize(). |
- base::ScopedAllowCrossThreadRefCountAccess |
- allow_cross_thread_ref_count_access; |
return private_->UpdateActiveGpu(vendor_id, device_id); |
} |