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

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

Issue 1117813002: Add GL strings to CastSysInfo interface and use to configure GPU (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 private_->SetGLStrings(gl_vendor, gl_renderer, gl_version); 115 private_->SetGLStrings(gl_vendor, gl_renderer, gl_version);
116 } 116 }
117 117
118 void GpuDataManagerImpl::GetGLStrings(std::string* gl_vendor, 118 void GpuDataManagerImpl::GetGLStrings(std::string* gl_vendor,
119 std::string* gl_renderer, 119 std::string* gl_renderer,
120 std::string* gl_version) { 120 std::string* gl_version) {
121 base::AutoLock auto_lock(lock_); 121 base::AutoLock auto_lock(lock_);
122 private_->GetGLStrings(gl_vendor, gl_renderer, gl_version); 122 private_->GetGLStrings(gl_vendor, gl_renderer, gl_version);
123 } 123 }
124 124
125 void GpuDataManagerImpl::SetGpuDeviceName(const std::string& vendor,
126 const std::string& device) {
127 base::AutoLock auto_lock(lock_);
128 private_->SetGpuDeviceName(vendor, device);
129 }
130
125 void GpuDataManagerImpl::DisableHardwareAcceleration() { 131 void GpuDataManagerImpl::DisableHardwareAcceleration() {
126 base::AutoLock auto_lock(lock_); 132 base::AutoLock auto_lock(lock_);
127 private_->DisableHardwareAcceleration(); 133 private_->DisableHardwareAcceleration();
128 } 134 }
129 135
130 bool GpuDataManagerImpl::CanUseGpuBrowserCompositor() const { 136 bool GpuDataManagerImpl::CanUseGpuBrowserCompositor() const {
131 base::AutoLock auto_lock(lock_); 137 base::AutoLock auto_lock(lock_);
132 return private_->CanUseGpuBrowserCompositor(); 138 return private_->CanUseGpuBrowserCompositor();
133 } 139 }
134 140
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
270 } 276 }
271 277
272 GpuDataManagerImpl::GpuDataManagerImpl() 278 GpuDataManagerImpl::GpuDataManagerImpl()
273 : private_(GpuDataManagerImplPrivate::Create(this)) { 279 : private_(GpuDataManagerImplPrivate::Create(this)) {
274 } 280 }
275 281
276 GpuDataManagerImpl::~GpuDataManagerImpl() { 282 GpuDataManagerImpl::~GpuDataManagerImpl() {
277 } 283 }
278 284
279 } // namespace content 285 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698