| 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 bf62796f02398039d9960a6b18b3fdba1bef0358..e29d332d27d46d6349abbc00621488dd247a28b3 100644
|
| --- a/content/browser/gpu/gpu_process_host_ui_shim.cc
|
| +++ b/content/browser/gpu/gpu_process_host_ui_shim.cc
|
| @@ -216,6 +216,8 @@ bool GpuProcessHostUIShim::OnControlMessageReceived(
|
| #if defined(USE_AURA)
|
| IPC_MESSAGE_HANDLER(GpuHostMsg_AcceleratedSurfaceRelease,
|
| OnAcceleratedSurfaceRelease)
|
| + IPC_MESSAGE_HANDLER(GpuHostMsg_AcceleratedSurfaceSuggestDiscard,
|
| + OnAcceleratedSurfaceSuggestDiscard)
|
| #endif
|
|
|
| IPC_MESSAGE_UNHANDLED_ERROR()
|
| @@ -394,4 +396,15 @@ void GpuProcessHostUIShim::OnAcceleratedSurfaceRelease(
|
| view->AcceleratedSurfaceRelease(params.identifier);
|
| }
|
|
|
| +void GpuProcessHostUIShim::OnAcceleratedSurfaceSuggestDiscard(
|
| + const GpuHostMsg_AcceleratedSurfaceSuggestDiscard_Params& params) {
|
| + RenderWidgetHostViewPort* view = GetRenderWidgetHostViewFromSurfaceID(
|
| + params.surface_id);
|
| + if (!view)
|
| + return;
|
| + view->AcceleratedSurfaceSuggestDiscard(params.identifier,
|
| + params.route_id,
|
| + host_id_);
|
| +}
|
| +
|
| #endif
|
|
|