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

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

Issue 1885023002: Set GpuPreferences correctly in GpuDataManagerImplPrivate::AppendGpuCommandLine. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2704
Patch Set: Created 4 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 #include "gpu/ipc/common/memory_stats.h" 8 #include "gpu/ipc/common/memory_stats.h"
9 9
10 namespace content { 10 namespace content {
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 private_->UpdateVideoMemoryUsageStats(video_memory_usage_stats); 150 private_->UpdateVideoMemoryUsageStats(video_memory_usage_stats);
151 } 151 }
152 152
153 void GpuDataManagerImpl::AppendRendererCommandLine( 153 void GpuDataManagerImpl::AppendRendererCommandLine(
154 base::CommandLine* command_line) const { 154 base::CommandLine* command_line) const {
155 base::AutoLock auto_lock(lock_); 155 base::AutoLock auto_lock(lock_);
156 private_->AppendRendererCommandLine(command_line); 156 private_->AppendRendererCommandLine(command_line);
157 } 157 }
158 158
159 void GpuDataManagerImpl::AppendGpuCommandLine( 159 void GpuDataManagerImpl::AppendGpuCommandLine(
160 base::CommandLine* command_line) const { 160 base::CommandLine* command_line,
161 gpu::GpuPreferences* gpu_preferences) const {
161 base::AutoLock auto_lock(lock_); 162 base::AutoLock auto_lock(lock_);
162 private_->AppendGpuCommandLine(command_line); 163 private_->AppendGpuCommandLine(command_line, gpu_preferences);
163 } 164 }
164 165
165 void GpuDataManagerImpl::UpdateRendererWebPrefs( 166 void GpuDataManagerImpl::UpdateRendererWebPrefs(
166 WebPreferences* prefs) const { 167 WebPreferences* prefs) const {
167 base::AutoLock auto_lock(lock_); 168 base::AutoLock auto_lock(lock_);
168 private_->UpdateRendererWebPrefs(prefs); 169 private_->UpdateRendererWebPrefs(prefs);
169 } 170 }
170 171
171 std::string GpuDataManagerImpl::GetBlacklistVersion() const { 172 std::string GpuDataManagerImpl::GetBlacklistVersion() const {
172 base::AutoLock auto_lock(lock_); 173 base::AutoLock auto_lock(lock_);
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
257 } 258 }
258 259
259 GpuDataManagerImpl::GpuDataManagerImpl() 260 GpuDataManagerImpl::GpuDataManagerImpl()
260 : private_(GpuDataManagerImplPrivate::Create(this)) { 261 : private_(GpuDataManagerImplPrivate::Create(this)) {
261 } 262 }
262 263
263 GpuDataManagerImpl::~GpuDataManagerImpl() { 264 GpuDataManagerImpl::~GpuDataManagerImpl() {
264 } 265 }
265 266
266 } // namespace content 267 } // 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