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

Unified Diff: content/public/browser/gpu_data_manager.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/public/browser/gpu_data_manager.h
diff --git a/content/public/browser/gpu_data_manager.h b/content/public/browser/gpu_data_manager.h
index db341fb80f6f385792a9d39a86e1d29161ce495a..bfe7bb7684185626f95cfea0792cada8c78d22c8 100644
--- a/content/public/browser/gpu_data_manager.h
+++ b/content/public/browser/gpu_data_manager.h
@@ -16,6 +16,7 @@ class GURL;
namespace gpu {
struct GPUInfo;
+struct VideoMemoryUsageStats;
}
namespace content {
@@ -58,9 +59,10 @@ class GpuDataManager {
// On other platforms, it's the same as IsEsentialGpuInfoAvailable().
virtual bool IsCompleteGpuInfoAvailable() const = 0;
- // Requests that the GPU process report its current video memory usage stats,
- // which can be retrieved via the GPU data manager's on-update function.
- virtual void RequestVideoMemoryUsageStatsUpdate() const = 0;
+ // Requests that the GPU process report its current video memory usage stats.
+ virtual void RequestVideoMemoryUsageStatsUpdate(
+ const base::Callback<void(const gpu::VideoMemoryUsageStats& stats)>&
+ callback) const = 0;
// Returns true if SwiftShader should be used.
virtual bool ShouldUseSwiftShader() const = 0;
« no previous file with comments | « content/browser/gpu/gpu_data_manager_impl_private_unittest.cc ('k') | content/public/browser/gpu_data_manager_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698