| 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 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 234 void GpuDataManagerImpl::SetDisplayCount(unsigned int display_count) { | 234 void GpuDataManagerImpl::SetDisplayCount(unsigned int display_count) { |
| 235 base::AutoLock auto_lock(lock_); | 235 base::AutoLock auto_lock(lock_); |
| 236 private_->SetDisplayCount(display_count); | 236 private_->SetDisplayCount(display_count); |
| 237 } | 237 } |
| 238 | 238 |
| 239 unsigned int GpuDataManagerImpl::GetDisplayCount() const { | 239 unsigned int GpuDataManagerImpl::GetDisplayCount() const { |
| 240 base::AutoLock auto_lock(lock_); | 240 base::AutoLock auto_lock(lock_); |
| 241 return private_->GetDisplayCount(); | 241 return private_->GetDisplayCount(); |
| 242 } | 242 } |
| 243 | 243 |
| 244 bool GpuDataManagerImpl::UpdateActiveGpu(uint32 vendor_id, uint32 device_id) { |
| 245 base::AutoLock auto_lock(lock_); |
| 246 return private_->UpdateActiveGpu(vendor_id, device_id); |
| 247 } |
| 248 |
| 244 void GpuDataManagerImpl::Notify3DAPIBlocked(const GURL& url, | 249 void GpuDataManagerImpl::Notify3DAPIBlocked(const GURL& url, |
| 245 int render_process_id, | 250 int render_process_id, |
| 246 int render_view_id, | 251 int render_view_id, |
| 247 ThreeDAPIType requester) { | 252 ThreeDAPIType requester) { |
| 248 base::AutoLock auto_lock(lock_); | 253 base::AutoLock auto_lock(lock_); |
| 249 private_->Notify3DAPIBlocked( | 254 private_->Notify3DAPIBlocked( |
| 250 url, render_process_id, render_view_id, requester); | 255 url, render_process_id, render_view_id, requester); |
| 251 } | 256 } |
| 252 | 257 |
| 253 void GpuDataManagerImpl::OnGpuProcessInitFailure() { | 258 void GpuDataManagerImpl::OnGpuProcessInitFailure() { |
| 254 base::AutoLock auto_lock(lock_); | 259 base::AutoLock auto_lock(lock_); |
| 255 private_->OnGpuProcessInitFailure(); | 260 private_->OnGpuProcessInitFailure(); |
| 256 } | 261 } |
| 257 | 262 |
| 258 GpuDataManagerImpl::GpuDataManagerImpl() | 263 GpuDataManagerImpl::GpuDataManagerImpl() |
| 259 : private_(GpuDataManagerImplPrivate::Create(this)) { | 264 : private_(GpuDataManagerImplPrivate::Create(this)) { |
| 260 } | 265 } |
| 261 | 266 |
| 262 GpuDataManagerImpl::~GpuDataManagerImpl() { | 267 GpuDataManagerImpl::~GpuDataManagerImpl() { |
| 263 } | 268 } |
| 264 | 269 |
| 265 } // namespace content | 270 } // namespace content |
| OLD | NEW |