| 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 8608ee511354eafc528896272794f9a0816df2ef..945f6067cbf514d593f68d3e7d57e57cd1eaa712 100644
|
| --- a/content/browser/gpu/gpu_process_host_ui_shim.cc
|
| +++ b/content/browser/gpu/gpu_process_host_ui_shim.cc
|
| @@ -202,7 +202,7 @@ bool GpuProcessHostUIShim::OnControlMessageReceived(
|
| IPC_MESSAGE_HANDLER(GpuHostMsg_ResizeView, OnResizeView)
|
| #endif
|
|
|
| -#if defined(OS_MACOSX) || defined(USE_AURA)
|
| +#if defined(USE_AURA)
|
| IPC_MESSAGE_HANDLER(GpuHostMsg_AcceleratedSurfaceNew,
|
| OnAcceleratedSurfaceNew)
|
| #endif
|
| @@ -283,7 +283,7 @@ void GpuProcessHostUIShim::OnResizeView(int32 surface_id,
|
|
|
| #endif
|
|
|
| -#if defined(OS_MACOSX) || defined(USE_AURA)
|
| +#if defined(USE_AURA)
|
|
|
| void GpuProcessHostUIShim::OnAcceleratedSurfaceNew(
|
| const GpuHostMsg_AcceleratedSurfaceNew_Params& params) {
|
| @@ -302,37 +302,8 @@ void GpuProcessHostUIShim::OnAcceleratedSurfaceNew(
|
| uint64 surface_handle = params.surface_handle;
|
| TransportDIB::Handle shm_handle = TransportDIB::DefaultHandleValue();
|
|
|
| -#if defined(OS_MACOSX)
|
| - if (params.create_transport_dib) {
|
| - scoped_ptr<base::SharedMemory> shared_memory(new base::SharedMemory());
|
| - if (shared_memory->CreateAnonymous(params.width * params.height * 4)) {
|
| - // Create a local handle for RWHVMac to map the SHM.
|
| - TransportDIB::Handle local_handle;
|
| - if (!shared_memory->ShareToProcess(0 /* pid, not needed */,
|
| - &local_handle)) {
|
| - return;
|
| - } else {
|
| - view->AcceleratedSurfaceSetTransportDIB(params.window,
|
| - params.width,
|
| - params.height,
|
| - local_handle);
|
| - // Create a remote handle for the GPU process to map the SHM.
|
| - if (!shared_memory->ShareToProcess(0 /* pid, not needed */,
|
| - &shm_handle)) {
|
| - return;
|
| - }
|
| - }
|
| - }
|
| - } else {
|
| - view->AcceleratedSurfaceSetIOSurface(params.window,
|
| - params.width,
|
| - params.height,
|
| - surface_handle);
|
| - }
|
| -#else // defined(USE_AURA)
|
| view->AcceleratedSurfaceNew(
|
| params.width, params.height, &surface_handle, &shm_handle);
|
| -#endif
|
| delayed_send.Cancel();
|
| Send(new AcceleratedSurfaceMsg_NewACK(
|
| params.route_id, surface_handle, shm_handle));
|
|
|