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

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

Issue 2810593003: gpu: Some cleanups. (Closed)
Patch Set: . Created 3 years, 8 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
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 #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
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
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
OLDNEW
« no previous file with comments | « content/browser/gpu/gpu_data_manager_impl.h ('k') | content/browser/gpu/gpu_data_manager_impl_private.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698