Chromium Code Reviews| 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..eab3f9318424b45b3546a3d136b764cc85aa2ec5 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_Vidmem, |
|
greggman
2012/08/14 23:48:17
Sorry to bring this up again but "OnVidmem" has no
ccameron
2012/08/15 02:20:41
Yes, this was a poor name. I change the vague "Vi
|
| + OnVidmem); |
| #if defined(TOOLKIT_GTK) || defined(OS_WIN) |
| IPC_MESSAGE_HANDLER(GpuHostMsg_ResizeView, OnResizeView) |
| #endif |
| @@ -367,3 +368,8 @@ void GpuProcessHostUIShim::OnAcceleratedSurfaceRelease( |
| return; |
| view->AcceleratedSurfaceRelease(params.identifier); |
| } |
| + |
| +void GpuProcessHostUIShim::OnVidmem(const content::GPUVidmem& vidmem) { |
| + GpuDataManagerImpl::GetInstance()->UpdateVidmem(vidmem); |
| +} |
| + |