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

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

Issue 2737983002: WebGL feature will only enabled when accelerated (Closed)
Patch Set: Formatting fix Created 3 years, 9 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 17 matching lines...) Expand all
28 bool GpuDataManagerImpl::IsFeatureBlacklisted(int feature) const { 28 bool GpuDataManagerImpl::IsFeatureBlacklisted(int feature) const {
29 base::AutoLock auto_lock(lock_); 29 base::AutoLock auto_lock(lock_);
30 return private_->IsFeatureBlacklisted(feature); 30 return private_->IsFeatureBlacklisted(feature);
31 } 31 }
32 32
33 bool GpuDataManagerImpl::IsFeatureEnabled(int feature) const { 33 bool GpuDataManagerImpl::IsFeatureEnabled(int feature) const {
34 base::AutoLock auto_lock(lock_); 34 base::AutoLock auto_lock(lock_);
35 return private_->IsFeatureEnabled(feature); 35 return private_->IsFeatureEnabled(feature);
36 } 36 }
37 37
38 bool GpuDataManagerImpl::IsWebGLEnabled() const {
39 base::AutoLock auto_lock(lock_);
40 return private_->IsWebGLEnabled();
41 }
42
38 bool GpuDataManagerImpl::IsDriverBugWorkaroundActive(int feature) const { 43 bool GpuDataManagerImpl::IsDriverBugWorkaroundActive(int feature) const {
39 base::AutoLock auto_lock(lock_); 44 base::AutoLock auto_lock(lock_);
40 return private_->IsDriverBugWorkaroundActive(feature); 45 return private_->IsDriverBugWorkaroundActive(feature);
41 } 46 }
42 47
43 gpu::GPUInfo GpuDataManagerImpl::GetGPUInfo() const { 48 gpu::GPUInfo GpuDataManagerImpl::GetGPUInfo() const {
44 base::AutoLock auto_lock(lock_); 49 base::AutoLock auto_lock(lock_);
45 return private_->GetGPUInfo(); 50 return private_->GetGPUInfo();
46 } 51 }
47 52
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
275 } 280 }
276 281
277 GpuDataManagerImpl::GpuDataManagerImpl() 282 GpuDataManagerImpl::GpuDataManagerImpl()
278 : private_(GpuDataManagerImplPrivate::Create(this)) { 283 : private_(GpuDataManagerImplPrivate::Create(this)) {
279 } 284 }
280 285
281 GpuDataManagerImpl::~GpuDataManagerImpl() { 286 GpuDataManagerImpl::~GpuDataManagerImpl() {
282 } 287 }
283 288
284 } // namespace content 289 } // 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