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

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

Issue 2715563002: Moving SwiftShader from component to bundled library (Closed)
Patch Set: Update past extension test fixes 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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 void GpuDataManagerImpl::RequestVideoMemoryUsageStatsUpdate() const { 79 void GpuDataManagerImpl::RequestVideoMemoryUsageStatsUpdate() const {
80 base::AutoLock auto_lock(lock_); 80 base::AutoLock auto_lock(lock_);
81 private_->RequestVideoMemoryUsageStatsUpdate(); 81 private_->RequestVideoMemoryUsageStatsUpdate();
82 } 82 }
83 83
84 bool GpuDataManagerImpl::ShouldUseSwiftShader() const { 84 bool GpuDataManagerImpl::ShouldUseSwiftShader() const {
85 base::AutoLock auto_lock(lock_); 85 base::AutoLock auto_lock(lock_);
86 return private_->ShouldUseSwiftShader(); 86 return private_->ShouldUseSwiftShader();
87 } 87 }
88 88
89 void GpuDataManagerImpl::RegisterSwiftShaderPath(
90 const base::FilePath& path) {
91 base::AutoLock auto_lock(lock_);
92 private_->RegisterSwiftShaderPath(path);
93 }
94
95 void GpuDataManagerImpl::AddObserver( 89 void GpuDataManagerImpl::AddObserver(
96 GpuDataManagerObserver* observer) { 90 GpuDataManagerObserver* observer) {
97 base::AutoLock auto_lock(lock_); 91 base::AutoLock auto_lock(lock_);
98 private_->AddObserver(observer); 92 private_->AddObserver(observer);
99 } 93 }
100 94
101 void GpuDataManagerImpl::RemoveObserver( 95 void GpuDataManagerImpl::RemoveObserver(
102 GpuDataManagerObserver* observer) { 96 GpuDataManagerObserver* observer) {
103 base::AutoLock auto_lock(lock_); 97 base::AutoLock auto_lock(lock_);
104 private_->RemoveObserver(observer); 98 private_->RemoveObserver(observer);
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
280 } 274 }
281 275
282 GpuDataManagerImpl::GpuDataManagerImpl() 276 GpuDataManagerImpl::GpuDataManagerImpl()
283 : private_(GpuDataManagerImplPrivate::Create(this)) { 277 : private_(GpuDataManagerImplPrivate::Create(this)) {
284 } 278 }
285 279
286 GpuDataManagerImpl::~GpuDataManagerImpl() { 280 GpuDataManagerImpl::~GpuDataManagerImpl() {
287 } 281 }
288 282
289 } // namespace content 283 } // 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