| 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..316d2b9f9ab1314d8aabc25fd73f7f91a334d22b 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,
|
| + OnVidmemUsageStatsReceived);
|
| #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::OnVidmemUsageStatsReceived(
|
| + const content::GPUVidmemUsageStats& vidmem_usage_stats) {
|
| + GpuDataManagerImpl::GetInstance()->UpdateVidmemUsageStats(
|
| + vidmem_usage_stats);
|
| +}
|
| +
|
|
|