| 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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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::DisableHardwareAcceleration() { | 115 void GpuDataManagerImpl::DisableHardwareAcceleration() { |
| 116 base::AutoLock auto_lock(lock_); | 116 base::AutoLock auto_lock(lock_); |
| 117 private_->DisableHardwareAcceleration(); | 117 private_->DisableHardwareAcceleration(); |
| 118 } | 118 } |
| 119 | 119 |
| 120 bool GpuDataManagerImpl::CanUseGpuBrowserCompositor() const { |
| 121 base::AutoLock auto_lock(lock_); |
| 122 return private_->CanUseGpuBrowserCompositor(); |
| 123 } |
| 124 |
| 120 void GpuDataManagerImpl::Initialize() { | 125 void GpuDataManagerImpl::Initialize() { |
| 121 base::AutoLock auto_lock(lock_); | 126 base::AutoLock auto_lock(lock_); |
| 122 private_->Initialize(); | 127 private_->Initialize(); |
| 123 } | 128 } |
| 124 | 129 |
| 125 void GpuDataManagerImpl::UpdateGpuInfo(const gpu::GPUInfo& gpu_info) { | 130 void GpuDataManagerImpl::UpdateGpuInfo(const gpu::GPUInfo& gpu_info) { |
| 126 base::AutoLock auto_lock(lock_); | 131 base::AutoLock auto_lock(lock_); |
| 127 private_->UpdateGpuInfo(gpu_info); | 132 private_->UpdateGpuInfo(gpu_info); |
| 128 } | 133 } |
| 129 | 134 |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 206 private_->HandleGpuSwitch(); | 211 private_->HandleGpuSwitch(); |
| 207 } | 212 } |
| 208 | 213 |
| 209 #if defined(OS_WIN) | 214 #if defined(OS_WIN) |
| 210 bool GpuDataManagerImpl::IsUsingAcceleratedSurface() const { | 215 bool GpuDataManagerImpl::IsUsingAcceleratedSurface() const { |
| 211 base::AutoLock auto_lock(lock_); | 216 base::AutoLock auto_lock(lock_); |
| 212 return private_->IsUsingAcceleratedSurface(); | 217 return private_->IsUsingAcceleratedSurface(); |
| 213 } | 218 } |
| 214 #endif | 219 #endif |
| 215 | 220 |
| 216 bool GpuDataManagerImpl::CanUseGpuBrowserCompositor() const { | |
| 217 base::AutoLock auto_lock(lock_); | |
| 218 return private_->CanUseGpuBrowserCompositor(); | |
| 219 } | |
| 220 | |
| 221 void GpuDataManagerImpl::BlockDomainFrom3DAPIs( | 221 void GpuDataManagerImpl::BlockDomainFrom3DAPIs( |
| 222 const GURL& url, DomainGuilt guilt) { | 222 const GURL& url, DomainGuilt guilt) { |
| 223 base::AutoLock auto_lock(lock_); | 223 base::AutoLock auto_lock(lock_); |
| 224 private_->BlockDomainFrom3DAPIs(url, guilt); | 224 private_->BlockDomainFrom3DAPIs(url, guilt); |
| 225 } | 225 } |
| 226 | 226 |
| 227 bool GpuDataManagerImpl::Are3DAPIsBlocked(const GURL& url, | 227 bool GpuDataManagerImpl::Are3DAPIsBlocked(const GURL& url, |
| 228 int render_process_id, | 228 int render_process_id, |
| 229 int render_view_id, | 229 int render_view_id, |
| 230 ThreeDAPIType requester) { | 230 ThreeDAPIType requester) { |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 268 } | 268 } |
| 269 | 269 |
| 270 GpuDataManagerImpl::GpuDataManagerImpl() | 270 GpuDataManagerImpl::GpuDataManagerImpl() |
| 271 : private_(GpuDataManagerImplPrivate::Create(this)) { | 271 : private_(GpuDataManagerImplPrivate::Create(this)) { |
| 272 } | 272 } |
| 273 | 273 |
| 274 GpuDataManagerImpl::~GpuDataManagerImpl() { | 274 GpuDataManagerImpl::~GpuDataManagerImpl() { |
| 275 } | 275 } |
| 276 | 276 |
| 277 } // namespace content | 277 } // namespace content |
| OLD | NEW |