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

Unified Diff: content/browser/gpu/gpu_process_host_ui_shim.cc

Issue 10854076: Add GPU memory tab to the task manager. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Change vague Vidmem label to VidmemUsageStats Created 8 years, 4 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_process_host_ui_shim.cc
diff --git a/content/browser/gpu/gpu_process_host_ui_shim.cc b/content/browser/gpu/gpu_process_host_ui_shim.cc
index beee4f3e84e2d6532e7eebf2ace143dc711722bb..082e72aa263be3159a099fd60ba525f0d68678da 100644
--- a/content/browser/gpu/gpu_process_host_ui_shim.cc
+++ b/content/browser/gpu/gpu_process_host_ui_shim.cc
@@ -207,7 +207,8 @@ bool GpuProcessHostUIShim::OnControlMessageReceived(
OnAcceleratedSurfaceNew)
IPC_MESSAGE_HANDLER(GpuHostMsg_AcceleratedSurfaceRelease,
OnAcceleratedSurfaceRelease)
-
+ IPC_MESSAGE_HANDLER(GpuHostMsg_VidmemUsageStats,
+ OnVidmemUsageStats);
#if defined(TOOLKIT_GTK) || defined(OS_WIN)
IPC_MESSAGE_HANDLER(GpuHostMsg_ResizeView, OnResizeView)
#endif
@@ -367,3 +368,10 @@ void GpuProcessHostUIShim::OnAcceleratedSurfaceRelease(
return;
view->AcceleratedSurfaceRelease(params.identifier);
}
+
+void GpuProcessHostUIShim::OnVidmemUsageStats(
+ const content::GPUVidmemUsageStats& vidmem_usage_stats) {
+ GpuDataManagerImpl::GetInstance()->UpdateVidmemUsageStats(
+ vidmem_usage_stats);
+}
+

Powered by Google App Engine
This is Rietveld 408576698