OLD | NEW |
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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 void GpuDataManagerImpl::RequestVideoMemoryUsageStatsUpdate() const { | 74 void GpuDataManagerImpl::RequestVideoMemoryUsageStatsUpdate() const { |
75 base::AutoLock auto_lock(lock_); | 75 base::AutoLock auto_lock(lock_); |
76 private_->RequestVideoMemoryUsageStatsUpdate(); | 76 private_->RequestVideoMemoryUsageStatsUpdate(); |
77 } | 77 } |
78 | 78 |
79 bool GpuDataManagerImpl::ShouldUseSwiftShader() const { | 79 bool GpuDataManagerImpl::ShouldUseSwiftShader() const { |
80 base::AutoLock auto_lock(lock_); | 80 base::AutoLock auto_lock(lock_); |
81 return private_->ShouldUseSwiftShader(); | 81 return private_->ShouldUseSwiftShader(); |
82 } | 82 } |
83 | 83 |
84 void GpuDataManagerImpl::RegisterSwiftShaderPath( | |
85 const base::FilePath& path) { | |
86 base::AutoLock auto_lock(lock_); | |
87 private_->RegisterSwiftShaderPath(path); | |
88 } | |
89 | |
90 void GpuDataManagerImpl::AddObserver( | 84 void GpuDataManagerImpl::AddObserver( |
91 GpuDataManagerObserver* observer) { | 85 GpuDataManagerObserver* observer) { |
92 base::AutoLock auto_lock(lock_); | 86 base::AutoLock auto_lock(lock_); |
93 private_->AddObserver(observer); | 87 private_->AddObserver(observer); |
94 } | 88 } |
95 | 89 |
96 void GpuDataManagerImpl::RemoveObserver( | 90 void GpuDataManagerImpl::RemoveObserver( |
97 GpuDataManagerObserver* observer) { | 91 GpuDataManagerObserver* observer) { |
98 base::AutoLock auto_lock(lock_); | 92 base::AutoLock auto_lock(lock_); |
99 private_->RemoveObserver(observer); | 93 private_->RemoveObserver(observer); |
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
269 } | 263 } |
270 | 264 |
271 GpuDataManagerImpl::GpuDataManagerImpl() | 265 GpuDataManagerImpl::GpuDataManagerImpl() |
272 : private_(GpuDataManagerImplPrivate::Create(this)) { | 266 : private_(GpuDataManagerImplPrivate::Create(this)) { |
273 } | 267 } |
274 | 268 |
275 GpuDataManagerImpl::~GpuDataManagerImpl() { | 269 GpuDataManagerImpl::~GpuDataManagerImpl() { |
276 } | 270 } |
277 | 271 |
278 } // namespace content | 272 } // namespace content |
OLD | NEW |