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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 bool GpuDataManagerImpl::GpuAccessAllowed(std::string* reason) const { | 48 bool GpuDataManagerImpl::GpuAccessAllowed(std::string* reason) const { |
49 base::AutoLock auto_lock(lock_); | 49 base::AutoLock auto_lock(lock_); |
50 return private_->GpuAccessAllowed(reason); | 50 return private_->GpuAccessAllowed(reason); |
51 } | 51 } |
52 | 52 |
53 void GpuDataManagerImpl::RequestCompleteGpuInfoIfNeeded() { | 53 void GpuDataManagerImpl::RequestCompleteGpuInfoIfNeeded() { |
54 base::AutoLock auto_lock(lock_); | 54 base::AutoLock auto_lock(lock_); |
55 private_->RequestCompleteGpuInfoIfNeeded(); | 55 private_->RequestCompleteGpuInfoIfNeeded(); |
56 } | 56 } |
57 | 57 |
| 58 bool GpuDataManagerImpl::IsEssentialGpuInfoAvailable() const { |
| 59 base::AutoLock auto_lock(lock_); |
| 60 return private_->IsEssentialGpuInfoAvailable(); |
| 61 } |
| 62 |
58 bool GpuDataManagerImpl::IsCompleteGpuInfoAvailable() const { | 63 bool GpuDataManagerImpl::IsCompleteGpuInfoAvailable() const { |
59 base::AutoLock auto_lock(lock_); | 64 base::AutoLock auto_lock(lock_); |
60 return private_->IsCompleteGpuInfoAvailable(); | 65 return private_->IsCompleteGpuInfoAvailable(); |
61 } | 66 } |
62 | 67 |
63 void GpuDataManagerImpl::RequestVideoMemoryUsageStatsUpdate() const { | 68 void GpuDataManagerImpl::RequestVideoMemoryUsageStatsUpdate() const { |
64 base::AutoLock auto_lock(lock_); | 69 base::AutoLock auto_lock(lock_); |
65 private_->RequestVideoMemoryUsageStatsUpdate(); | 70 private_->RequestVideoMemoryUsageStatsUpdate(); |
66 } | 71 } |
67 | 72 |
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
261 } | 266 } |
262 | 267 |
263 GpuDataManagerImpl::GpuDataManagerImpl() | 268 GpuDataManagerImpl::GpuDataManagerImpl() |
264 : private_(GpuDataManagerImplPrivate::Create(this)) { | 269 : private_(GpuDataManagerImplPrivate::Create(this)) { |
265 } | 270 } |
266 | 271 |
267 GpuDataManagerImpl::~GpuDataManagerImpl() { | 272 GpuDataManagerImpl::~GpuDataManagerImpl() { |
268 } | 273 } |
269 | 274 |
270 } // namespace content | 275 } // namespace content |
OLD | NEW |