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

Unified Diff: content/browser/gpu/gpu_data_manager_impl.h

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 side-by-side diff with in-line comments
Download patch
Index: content/browser/gpu/gpu_data_manager_impl.h
diff --git a/content/browser/gpu/gpu_data_manager_impl.h b/content/browser/gpu/gpu_data_manager_impl.h
index 0b2390750141690516b8688f76706034349b1e2e..6c616cf2833ac2ffbe36368d3bc8b9f38e98b635 100644
--- a/content/browser/gpu/gpu_data_manager_impl.h
+++ b/content/browser/gpu/gpu_data_manager_impl.h
@@ -75,7 +75,9 @@ class CONTENT_EXPORT GpuDataManagerImpl
void RequestCompleteGpuInfoIfNeeded() override;
bool IsEssentialGpuInfoAvailable() const override;
bool IsCompleteGpuInfoAvailable() const override;
- void RequestVideoMemoryUsageStatsUpdate() const override;
+ void RequestVideoMemoryUsageStatsUpdate(
+ const base::Callback<void(const gpu::VideoMemoryUsageStats& stats)>&
+ callback) const override;
bool ShouldUseSwiftShader() const override;
// TODO(kbr): the threading model for the GpuDataManagerObservers is
// not well defined, and it's impossible for callers to correctly
@@ -113,9 +115,6 @@ class CONTENT_EXPORT GpuDataManagerImpl
// of GPU rasterization. In the future this will be used for more features.
void UpdateGpuFeatureInfo(const gpu::GpuFeatureInfo& gpu_feature_info);
- void UpdateVideoMemoryUsageStats(
- const gpu::VideoMemoryUsageStats& video_memory_usage_stats);
-
// Insert disable-feature switches corresponding to preliminary gpu feature
// flags into the renderer process command line.
void AppendRendererCommandLine(base::CommandLine* command_line) const;
« no previous file with comments | « chrome/browser/task_manager/sampling/task_manager_impl.cc ('k') | content/browser/gpu/gpu_data_manager_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698