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 |
11 // static | 11 // static |
12 GpuDataManager* GpuDataManager::GetInstance() { | 12 GpuDataManager* GpuDataManager::GetInstance() { |
13 return GpuDataManagerImpl::GetInstance(); | 13 return GpuDataManagerImpl::GetInstance(); |
14 } | 14 } |
15 | 15 |
16 // static | 16 // static |
17 GpuDataManagerImpl* GpuDataManagerImpl::GetInstance() { | 17 GpuDataManagerImpl* GpuDataManagerImpl::GetInstance() { |
18 return Singleton<GpuDataManagerImpl>::get(); | 18 return base::Singleton<GpuDataManagerImpl>::get(); |
19 } | 19 } |
20 | 20 |
21 void GpuDataManagerImpl::InitializeForTesting( | 21 void GpuDataManagerImpl::InitializeForTesting( |
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_); |
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
276 } | 276 } |
277 | 277 |
278 GpuDataManagerImpl::GpuDataManagerImpl() | 278 GpuDataManagerImpl::GpuDataManagerImpl() |
279 : private_(GpuDataManagerImplPrivate::Create(this)) { | 279 : private_(GpuDataManagerImplPrivate::Create(this)) { |
280 } | 280 } |
281 | 281 |
282 GpuDataManagerImpl::~GpuDataManagerImpl() { | 282 GpuDataManagerImpl::~GpuDataManagerImpl() { |
283 } | 283 } |
284 | 284 |
285 } // namespace content | 285 } // namespace content |
OLD | NEW |