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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 private_->SetGLStrings(gl_vendor, gl_renderer, gl_version); | 105 private_->SetGLStrings(gl_vendor, gl_renderer, gl_version); |
106 } | 106 } |
107 | 107 |
108 void GpuDataManagerImpl::GetGLStrings(std::string* gl_vendor, | 108 void GpuDataManagerImpl::GetGLStrings(std::string* gl_vendor, |
109 std::string* gl_renderer, | 109 std::string* gl_renderer, |
110 std::string* gl_version) { | 110 std::string* gl_version) { |
111 base::AutoLock auto_lock(lock_); | 111 base::AutoLock auto_lock(lock_); |
112 private_->GetGLStrings(gl_vendor, gl_renderer, gl_version); | 112 private_->GetGLStrings(gl_vendor, gl_renderer, gl_version); |
113 } | 113 } |
114 | 114 |
| 115 void GpuDataManagerImpl::SetShouldUseWarp(bool use_warp) { |
| 116 base::AutoLock auto_lock(lock_); |
| 117 private_->SetShouldUseWarp(use_warp); |
| 118 } |
| 119 |
| 120 bool GpuDataManagerImpl::ShouldUseWarp() const { |
| 121 base::AutoLock auto_lock(lock_); |
| 122 return private_->ShouldUseWarp(); |
| 123 } |
| 124 |
115 void GpuDataManagerImpl::DisableHardwareAcceleration() { | 125 void GpuDataManagerImpl::DisableHardwareAcceleration() { |
116 base::AutoLock auto_lock(lock_); | 126 base::AutoLock auto_lock(lock_); |
117 private_->DisableHardwareAcceleration(); | 127 private_->DisableHardwareAcceleration(); |
118 } | 128 } |
119 | 129 |
120 bool GpuDataManagerImpl::CanUseGpuBrowserCompositor() const { | 130 bool GpuDataManagerImpl::CanUseGpuBrowserCompositor() const { |
121 base::AutoLock auto_lock(lock_); | 131 base::AutoLock auto_lock(lock_); |
122 return private_->CanUseGpuBrowserCompositor(); | 132 return private_->CanUseGpuBrowserCompositor(); |
123 } | 133 } |
124 | 134 |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
261 } | 271 } |
262 | 272 |
263 GpuDataManagerImpl::GpuDataManagerImpl() | 273 GpuDataManagerImpl::GpuDataManagerImpl() |
264 : private_(GpuDataManagerImplPrivate::Create(this)) { | 274 : private_(GpuDataManagerImplPrivate::Create(this)) { |
265 } | 275 } |
266 | 276 |
267 GpuDataManagerImpl::~GpuDataManagerImpl() { | 277 GpuDataManagerImpl::~GpuDataManagerImpl() { |
268 } | 278 } |
269 | 279 |
270 } // namespace content | 280 } // namespace content |
OLD | NEW |