OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "content/browser/gpu/gpu_data_manager_impl.h" | 5 #include "content/browser/gpu/gpu_data_manager_impl.h" |
6 | 6 |
7 #include "content/browser/gpu/gpu_data_manager_impl_private.h" | 7 #include "content/browser/gpu/gpu_data_manager_impl_private.h" |
8 | 8 |
9 namespace content { | 9 namespace content { |
10 | 10 |
(...skipping 11 matching lines...) Expand all Loading... |
22 const std::string& gpu_blacklist_json, const gpu::GPUInfo& gpu_info) { | 22 const std::string& gpu_blacklist_json, const gpu::GPUInfo& gpu_info) { |
23 base::AutoLock auto_lock(lock_); | 23 base::AutoLock auto_lock(lock_); |
24 private_->InitializeForTesting(gpu_blacklist_json, gpu_info); | 24 private_->InitializeForTesting(gpu_blacklist_json, gpu_info); |
25 } | 25 } |
26 | 26 |
27 bool GpuDataManagerImpl::IsFeatureBlacklisted(int feature) const { | 27 bool GpuDataManagerImpl::IsFeatureBlacklisted(int feature) const { |
28 base::AutoLock auto_lock(lock_); | 28 base::AutoLock auto_lock(lock_); |
29 return private_->IsFeatureBlacklisted(feature); | 29 return private_->IsFeatureBlacklisted(feature); |
30 } | 30 } |
31 | 31 |
| 32 bool GpuDataManagerImpl::IsDriverBugWorkaroundActive(int feature) const { |
| 33 base::AutoLock auto_lock(lock_); |
| 34 return private_->IsDriverBugWorkaroundActive(feature); |
| 35 } |
| 36 |
32 gpu::GPUInfo GpuDataManagerImpl::GetGPUInfo() const { | 37 gpu::GPUInfo GpuDataManagerImpl::GetGPUInfo() const { |
33 base::AutoLock auto_lock(lock_); | 38 base::AutoLock auto_lock(lock_); |
34 return private_->GetGPUInfo(); | 39 return private_->GetGPUInfo(); |
35 } | 40 } |
36 | 41 |
37 void GpuDataManagerImpl::GetGpuProcessHandles( | 42 void GpuDataManagerImpl::GetGpuProcessHandles( |
38 const GetGpuProcessHandlesCallback& callback) const { | 43 const GetGpuProcessHandlesCallback& callback) const { |
39 base::AutoLock auto_lock(lock_); | 44 base::AutoLock auto_lock(lock_); |
40 private_->GetGpuProcessHandles(callback); | 45 private_->GetGpuProcessHandles(callback); |
41 } | 46 } |
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
263 } | 268 } |
264 | 269 |
265 GpuDataManagerImpl::GpuDataManagerImpl() | 270 GpuDataManagerImpl::GpuDataManagerImpl() |
266 : private_(GpuDataManagerImplPrivate::Create(this)) { | 271 : private_(GpuDataManagerImplPrivate::Create(this)) { |
267 } | 272 } |
268 | 273 |
269 GpuDataManagerImpl::~GpuDataManagerImpl() { | 274 GpuDataManagerImpl::~GpuDataManagerImpl() { |
270 } | 275 } |
271 | 276 |
272 } // namespace content | 277 } // namespace content |
OLD | NEW |