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

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

Issue 2827323002: gpu:: Remove GpuDataManagerObserver::OnVideoMemoryUsageStatsUpdate(). (Closed)
Patch Set: . Created 3 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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 bool GpuDataManagerImpl::IsEssentialGpuInfoAvailable() const { 104 bool GpuDataManagerImpl::IsEssentialGpuInfoAvailable() const {
105 base::AutoLock auto_lock(lock_); 105 base::AutoLock auto_lock(lock_);
106 return private_->IsEssentialGpuInfoAvailable(); 106 return private_->IsEssentialGpuInfoAvailable();
107 } 107 }
108 108
109 bool GpuDataManagerImpl::IsCompleteGpuInfoAvailable() const { 109 bool GpuDataManagerImpl::IsCompleteGpuInfoAvailable() const {
110 base::AutoLock auto_lock(lock_); 110 base::AutoLock auto_lock(lock_);
111 return private_->IsCompleteGpuInfoAvailable(); 111 return private_->IsCompleteGpuInfoAvailable();
112 } 112 }
113 113
114 void GpuDataManagerImpl::RequestVideoMemoryUsageStatsUpdate() const { 114 void GpuDataManagerImpl::RequestVideoMemoryUsageStatsUpdate(
115 const base::Callback<void(const gpu::VideoMemoryUsageStats& stats)>&
116 callback) const {
115 base::AutoLock auto_lock(lock_); 117 base::AutoLock auto_lock(lock_);
116 private_->RequestVideoMemoryUsageStatsUpdate(); 118 private_->RequestVideoMemoryUsageStatsUpdate(callback);
117 } 119 }
118 120
119 bool GpuDataManagerImpl::ShouldUseSwiftShader() const { 121 bool GpuDataManagerImpl::ShouldUseSwiftShader() const {
120 base::AutoLock auto_lock(lock_); 122 base::AutoLock auto_lock(lock_);
121 return private_->ShouldUseSwiftShader(); 123 return private_->ShouldUseSwiftShader();
122 } 124 }
123 125
124 void GpuDataManagerImpl::AddObserver( 126 void GpuDataManagerImpl::AddObserver(
125 GpuDataManagerObserver* observer) { 127 GpuDataManagerObserver* observer) {
126 base::AutoLock auto_lock(lock_); 128 base::AutoLock auto_lock(lock_);
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 base::AutoLock auto_lock(lock_); 190 base::AutoLock auto_lock(lock_);
189 private_->UpdateGpuInfo(gpu_info); 191 private_->UpdateGpuInfo(gpu_info);
190 } 192 }
191 193
192 void GpuDataManagerImpl::UpdateGpuFeatureInfo( 194 void GpuDataManagerImpl::UpdateGpuFeatureInfo(
193 const gpu::GpuFeatureInfo& gpu_feature_info) { 195 const gpu::GpuFeatureInfo& gpu_feature_info) {
194 base::AutoLock auto_lock(lock_); 196 base::AutoLock auto_lock(lock_);
195 private_->UpdateGpuFeatureInfo(gpu_feature_info); 197 private_->UpdateGpuFeatureInfo(gpu_feature_info);
196 } 198 }
197 199
198 void GpuDataManagerImpl::UpdateVideoMemoryUsageStats(
199 const gpu::VideoMemoryUsageStats& video_memory_usage_stats) {
200 base::AutoLock auto_lock(lock_);
201 private_->UpdateVideoMemoryUsageStats(video_memory_usage_stats);
202 }
203
204 void GpuDataManagerImpl::AppendRendererCommandLine( 200 void GpuDataManagerImpl::AppendRendererCommandLine(
205 base::CommandLine* command_line) const { 201 base::CommandLine* command_line) const {
206 base::AutoLock auto_lock(lock_); 202 base::AutoLock auto_lock(lock_);
207 private_->AppendRendererCommandLine(command_line); 203 private_->AppendRendererCommandLine(command_line);
208 } 204 }
209 205
210 void GpuDataManagerImpl::AppendGpuCommandLine( 206 void GpuDataManagerImpl::AppendGpuCommandLine(
211 base::CommandLine* command_line, 207 base::CommandLine* command_line,
212 gpu::GpuPreferences* gpu_preferences) const { 208 gpu::GpuPreferences* gpu_preferences) const {
213 base::AutoLock auto_lock(lock_); 209 base::AutoLock auto_lock(lock_);
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
309 } 305 }
310 306
311 GpuDataManagerImpl::GpuDataManagerImpl() 307 GpuDataManagerImpl::GpuDataManagerImpl()
312 : private_(GpuDataManagerImplPrivate::Create(this)) { 308 : private_(GpuDataManagerImplPrivate::Create(this)) {
313 } 309 }
314 310
315 GpuDataManagerImpl::~GpuDataManagerImpl() { 311 GpuDataManagerImpl::~GpuDataManagerImpl() {
316 } 312 }
317 313
318 } // namespace content 314 } // 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