Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(118)

Side by Side Diff: content/browser/gpu/gpu_data_manager_impl.cc

Issue 1308823002: Move Singleton and related structs to namespace base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ToT Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « content/browser/gpu/gpu_data_manager_impl.h ('k') | content/browser/gpu/gpu_surface_tracker.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « content/browser/gpu/gpu_data_manager_impl.h ('k') | content/browser/gpu/gpu_surface_tracker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698