Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(550)

Side by Side Diff: content/browser/gpu/gpu_data_manager_impl.cc

Issue 237903002: Clean up mac gpu switching code a little. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix linux test Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « content/browser/gpu/gpu_data_manager_impl.h ('k') | content/browser/gpu/gpu_data_manager_impl_private.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698