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 | 8 |
9 namespace content { | 9 namespace content { |
10 | 10 |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 base::AutoLock auto_lock(lock_); | 69 base::AutoLock auto_lock(lock_); |
70 return private_->ShouldUseSwiftShader(); | 70 return private_->ShouldUseSwiftShader(); |
71 } | 71 } |
72 | 72 |
73 void GpuDataManagerImpl::RegisterSwiftShaderPath( | 73 void GpuDataManagerImpl::RegisterSwiftShaderPath( |
74 const base::FilePath& path) { | 74 const base::FilePath& path) { |
75 base::AutoLock auto_lock(lock_); | 75 base::AutoLock auto_lock(lock_); |
76 private_->RegisterSwiftShaderPath(path); | 76 private_->RegisterSwiftShaderPath(path); |
77 } | 77 } |
78 | 78 |
| 79 bool GpuDataManagerImpl::ShouldUseWarp() const { |
| 80 base::AutoLock auto_lock(lock_); |
| 81 return private_->ShouldUseWarp(); |
| 82 } |
| 83 |
79 void GpuDataManagerImpl::AddObserver( | 84 void GpuDataManagerImpl::AddObserver( |
80 GpuDataManagerObserver* observer) { | 85 GpuDataManagerObserver* observer) { |
81 base::AutoLock auto_lock(lock_); | 86 base::AutoLock auto_lock(lock_); |
82 private_->AddObserver(observer); | 87 private_->AddObserver(observer); |
83 } | 88 } |
84 | 89 |
85 void GpuDataManagerImpl::RemoveObserver( | 90 void GpuDataManagerImpl::RemoveObserver( |
86 GpuDataManagerObserver* observer) { | 91 GpuDataManagerObserver* observer) { |
87 base::AutoLock auto_lock(lock_); | 92 base::AutoLock auto_lock(lock_); |
88 private_->RemoveObserver(observer); | 93 private_->RemoveObserver(observer); |
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
261 } | 266 } |
262 | 267 |
263 GpuDataManagerImpl::GpuDataManagerImpl() | 268 GpuDataManagerImpl::GpuDataManagerImpl() |
264 : private_(GpuDataManagerImplPrivate::Create(this)) { | 269 : private_(GpuDataManagerImplPrivate::Create(this)) { |
265 } | 270 } |
266 | 271 |
267 GpuDataManagerImpl::~GpuDataManagerImpl() { | 272 GpuDataManagerImpl::~GpuDataManagerImpl() { |
268 } | 273 } |
269 | 274 |
270 } // namespace content | 275 } // namespace content |
OLD | NEW |