| 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 #include "gpu/ipc/common/memory_stats.h" | 8 #include "gpu/ipc/common/memory_stats.h" |
| 9 | 9 |
| 10 namespace content { | 10 namespace content { |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 bool GpuDataManagerImpl::IsDriverBugWorkaroundActive(int feature) const { | 84 bool GpuDataManagerImpl::IsDriverBugWorkaroundActive(int feature) const { |
| 85 base::AutoLock auto_lock(lock_); | 85 base::AutoLock auto_lock(lock_); |
| 86 return private_->IsDriverBugWorkaroundActive(feature); | 86 return private_->IsDriverBugWorkaroundActive(feature); |
| 87 } | 87 } |
| 88 | 88 |
| 89 gpu::GPUInfo GpuDataManagerImpl::GetGPUInfo() const { | 89 gpu::GPUInfo GpuDataManagerImpl::GetGPUInfo() const { |
| 90 base::AutoLock auto_lock(lock_); | 90 base::AutoLock auto_lock(lock_); |
| 91 return private_->GetGPUInfo(); | 91 return private_->GetGPUInfo(); |
| 92 } | 92 } |
| 93 | 93 |
| 94 void GpuDataManagerImpl::GetGpuProcessHandles( | |
| 95 const GetGpuProcessHandlesCallback& callback) const { | |
| 96 base::AutoLock auto_lock(lock_); | |
| 97 private_->GetGpuProcessHandles(callback); | |
| 98 } | |
| 99 | |
| 100 bool GpuDataManagerImpl::GpuAccessAllowed(std::string* reason) const { | 94 bool GpuDataManagerImpl::GpuAccessAllowed(std::string* reason) const { |
| 101 base::AutoLock auto_lock(lock_); | 95 base::AutoLock auto_lock(lock_); |
| 102 return private_->GpuAccessAllowed(reason); | 96 return private_->GpuAccessAllowed(reason); |
| 103 } | 97 } |
| 104 | 98 |
| 105 void GpuDataManagerImpl::RequestCompleteGpuInfoIfNeeded() { | 99 void GpuDataManagerImpl::RequestCompleteGpuInfoIfNeeded() { |
| 106 base::AutoLock auto_lock(lock_); | 100 base::AutoLock auto_lock(lock_); |
| 107 private_->RequestCompleteGpuInfoIfNeeded(); | 101 private_->RequestCompleteGpuInfoIfNeeded(); |
| 108 } | 102 } |
| 109 | 103 |
| (...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 315 } | 309 } |
| 316 | 310 |
| 317 GpuDataManagerImpl::GpuDataManagerImpl() | 311 GpuDataManagerImpl::GpuDataManagerImpl() |
| 318 : private_(GpuDataManagerImplPrivate::Create(this)) { | 312 : private_(GpuDataManagerImplPrivate::Create(this)) { |
| 319 } | 313 } |
| 320 | 314 |
| 321 GpuDataManagerImpl::~GpuDataManagerImpl() { | 315 GpuDataManagerImpl::~GpuDataManagerImpl() { |
| 322 } | 316 } |
| 323 | 317 |
| 324 } // namespace content | 318 } // namespace content |
| OLD | NEW |