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 e2aa7e2cffad0f6688ee1da7266a4f88d7b466c9..543d6cb5ff9f82591581a1a0ae2947b2c8ea9979 100644 |
| --- a/content/browser/gpu/gpu_process_host_ui_shim.cc |
| +++ b/content/browser/gpu/gpu_process_host_ui_shim.cc |
| @@ -160,8 +160,8 @@ bool GpuProcessHostUIShim::OnControlMessageReceived( |
| #endif |
| #if defined(OS_MACOSX) || defined(TOUCH_UI) |
| - IPC_MESSAGE_HANDLER(GpuHostMsg_AcceleratedSurfaceSetIOSurface, |
| - OnAcceleratedSurfaceSetIOSurface) |
| + IPC_MESSAGE_HANDLER(GpuHostMsg_AcceleratedSurfaceNew, |
| + OnAcceleratedSurfaceNew) |
| IPC_MESSAGE_HANDLER(GpuHostMsg_AcceleratedSurfaceBuffersSwapped, |
| OnAcceleratedSurfaceBuffersSwapped) |
| #endif |
| @@ -234,8 +234,8 @@ void GpuProcessHostUIShim::OnResizeView(int32 renderer_id, |
| #if defined(OS_MACOSX) || defined(TOUCH_UI) |
| -void GpuProcessHostUIShim::OnAcceleratedSurfaceSetIOSurface( |
| - const GpuHostMsg_AcceleratedSurfaceSetIOSurface_Params& params) { |
| +void GpuProcessHostUIShim::OnAcceleratedSurfaceNew( |
| + const GpuHostMsg_AcceleratedSurfaceNew_Params& params) { |
|
danakj
2011/09/21 20:58:20
This will have to be renamed back or duplicated fo
|
| RenderViewHost* host = RenderViewHost::FromID(params.renderer_id, |
| params.render_view_id); |
| if (!host) |
| @@ -249,10 +249,15 @@ void GpuProcessHostUIShim::OnAcceleratedSurfaceSetIOSurface( |
| params.height, |
| params.identifier); |
| #elif defined(TOUCH_UI) |
| - view->AcceleratedSurfaceSetIOSurface( |
| - params.width, params.height, params.identifier); |
| - Send(new AcceleratedSurfaceMsg_SetSurfaceACK( |
| - params.route_id, params.identifier)); |
| + uint64 surface_id; |
| + TransportDIB::Handle surface_handle; |
| + |
| + surface_id = params.identifier; |
|
jonathan.backer
2011/09/21 20:27:36
nit: init on the decl?
danakj
2011/09/21 20:58:20
it's my C style background I guess. I like to decl
|
| + view->AcceleratedSurfaceNew( |
| + params.width, params.height, &surface_id, &surface_handle); |
| + |
| + Send(new AcceleratedSurfaceMsg_NewACK( |
| + params.route_id, surface_id, surface_handle)); |
| #endif |
| } |