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

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

Issue 534043002: Add bits to indicate which parts of GPUInfo are collected. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
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
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
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::IsCompleteGpuInfoAvailable() const { 58 bool GpuDataManagerImpl::IsCompleteGpuInfoAvailable(bool includes_extra) const {
59 base::AutoLock auto_lock(lock_); 59 base::AutoLock auto_lock(lock_);
60 return private_->IsCompleteGpuInfoAvailable(); 60 return private_->IsCompleteGpuInfoAvailable(includes_extra);
61 } 61 }
62 62
63 void GpuDataManagerImpl::RequestVideoMemoryUsageStatsUpdate() const { 63 void GpuDataManagerImpl::RequestVideoMemoryUsageStatsUpdate() const {
64 base::AutoLock auto_lock(lock_); 64 base::AutoLock auto_lock(lock_);
65 private_->RequestVideoMemoryUsageStatsUpdate(); 65 private_->RequestVideoMemoryUsageStatsUpdate();
66 } 66 }
67 67
68 bool GpuDataManagerImpl::ShouldUseSwiftShader() const { 68 bool GpuDataManagerImpl::ShouldUseSwiftShader() const {
69 base::AutoLock auto_lock(lock_); 69 base::AutoLock auto_lock(lock_);
70 return private_->ShouldUseSwiftShader(); 70 return private_->ShouldUseSwiftShader();
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
261 } 261 }
262 262
263 GpuDataManagerImpl::GpuDataManagerImpl() 263 GpuDataManagerImpl::GpuDataManagerImpl()
264 : private_(GpuDataManagerImplPrivate::Create(this)) { 264 : private_(GpuDataManagerImplPrivate::Create(this)) {
265 } 265 }
266 266
267 GpuDataManagerImpl::~GpuDataManagerImpl() { 267 GpuDataManagerImpl::~GpuDataManagerImpl() {
268 } 268 }
269 269
270 } // namespace content 270 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698