| 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 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 249 void GpuDataManagerImpl::SetDisplayCount(unsigned int display_count) { | 249 void GpuDataManagerImpl::SetDisplayCount(unsigned int display_count) { |
| 250 base::AutoLock auto_lock(lock_); | 250 base::AutoLock auto_lock(lock_); |
| 251 private_->SetDisplayCount(display_count); | 251 private_->SetDisplayCount(display_count); |
| 252 } | 252 } |
| 253 | 253 |
| 254 unsigned int GpuDataManagerImpl::GetDisplayCount() const { | 254 unsigned int GpuDataManagerImpl::GetDisplayCount() const { |
| 255 base::AutoLock auto_lock(lock_); | 255 base::AutoLock auto_lock(lock_); |
| 256 return private_->GetDisplayCount(); | 256 return private_->GetDisplayCount(); |
| 257 } | 257 } |
| 258 | 258 |
| 259 bool GpuDataManagerImpl::UpdateActiveGpu(uint32 vendor_id, uint32 device_id) { | 259 bool GpuDataManagerImpl::UpdateActiveGpu(uint32_t vendor_id, |
| 260 uint32_t device_id) { |
| 260 base::AutoLock auto_lock(lock_); | 261 base::AutoLock auto_lock(lock_); |
| 261 return private_->UpdateActiveGpu(vendor_id, device_id); | 262 return private_->UpdateActiveGpu(vendor_id, device_id); |
| 262 } | 263 } |
| 263 | 264 |
| 264 void GpuDataManagerImpl::Notify3DAPIBlocked(const GURL& top_origin_url, | 265 void GpuDataManagerImpl::Notify3DAPIBlocked(const GURL& top_origin_url, |
| 265 int render_process_id, | 266 int render_process_id, |
| 266 int render_frame_id, | 267 int render_frame_id, |
| 267 ThreeDAPIType requester) { | 268 ThreeDAPIType requester) { |
| 268 base::AutoLock auto_lock(lock_); | 269 base::AutoLock auto_lock(lock_); |
| 269 private_->Notify3DAPIBlocked( | 270 private_->Notify3DAPIBlocked( |
| 270 top_origin_url, render_process_id, render_frame_id, requester); | 271 top_origin_url, render_process_id, render_frame_id, requester); |
| 271 } | 272 } |
| 272 | 273 |
| 273 void GpuDataManagerImpl::OnGpuProcessInitFailure() { | 274 void GpuDataManagerImpl::OnGpuProcessInitFailure() { |
| 274 base::AutoLock auto_lock(lock_); | 275 base::AutoLock auto_lock(lock_); |
| 275 private_->OnGpuProcessInitFailure(); | 276 private_->OnGpuProcessInitFailure(); |
| 276 } | 277 } |
| 277 | 278 |
| 278 GpuDataManagerImpl::GpuDataManagerImpl() | 279 GpuDataManagerImpl::GpuDataManagerImpl() |
| 279 : private_(GpuDataManagerImplPrivate::Create(this)) { | 280 : private_(GpuDataManagerImplPrivate::Create(this)) { |
| 280 } | 281 } |
| 281 | 282 |
| 282 GpuDataManagerImpl::~GpuDataManagerImpl() { | 283 GpuDataManagerImpl::~GpuDataManagerImpl() { |
| 283 } | 284 } |
| 284 | 285 |
| 285 } // namespace content | 286 } // namespace content |
| OLD | NEW |