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 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 std::string* disabled_extensions) const { | 136 std::string* disabled_extensions) const { |
137 base::AutoLock auto_lock(lock_); | 137 base::AutoLock auto_lock(lock_); |
138 private_->GetDisabledExtensions(disabled_extensions); | 138 private_->GetDisabledExtensions(disabled_extensions); |
139 } | 139 } |
140 | 140 |
141 void GpuDataManagerImpl::Initialize() { | 141 void GpuDataManagerImpl::Initialize() { |
142 base::AutoLock auto_lock(lock_); | 142 base::AutoLock auto_lock(lock_); |
143 private_->Initialize(); | 143 private_->Initialize(); |
144 } | 144 } |
145 | 145 |
| 146 bool GpuDataManagerImpl::IsInitialized() const { |
| 147 base::AutoLock auto_lock(lock_); |
| 148 return private_->IsInitialized(); |
| 149 } |
| 150 |
146 void GpuDataManagerImpl::UpdateGpuInfo(const gpu::GPUInfo& gpu_info) { | 151 void GpuDataManagerImpl::UpdateGpuInfo(const gpu::GPUInfo& gpu_info) { |
147 base::AutoLock auto_lock(lock_); | 152 base::AutoLock auto_lock(lock_); |
148 private_->UpdateGpuInfo(gpu_info); | 153 private_->UpdateGpuInfo(gpu_info); |
149 } | 154 } |
150 | 155 |
151 void GpuDataManagerImpl::UpdateVideoMemoryUsageStats( | 156 void GpuDataManagerImpl::UpdateVideoMemoryUsageStats( |
152 const GPUVideoMemoryUsageStats& video_memory_usage_stats) { | 157 const GPUVideoMemoryUsageStats& video_memory_usage_stats) { |
153 base::AutoLock auto_lock(lock_); | 158 base::AutoLock auto_lock(lock_); |
154 private_->UpdateVideoMemoryUsageStats(video_memory_usage_stats); | 159 private_->UpdateVideoMemoryUsageStats(video_memory_usage_stats); |
155 } | 160 } |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
277 } | 282 } |
278 | 283 |
279 GpuDataManagerImpl::GpuDataManagerImpl() | 284 GpuDataManagerImpl::GpuDataManagerImpl() |
280 : private_(GpuDataManagerImplPrivate::Create(this)) { | 285 : private_(GpuDataManagerImplPrivate::Create(this)) { |
281 } | 286 } |
282 | 287 |
283 GpuDataManagerImpl::~GpuDataManagerImpl() { | 288 GpuDataManagerImpl::~GpuDataManagerImpl() { |
284 } | 289 } |
285 | 290 |
286 } // namespace content | 291 } // namespace content |
OLD | NEW |