Chromium Code Reviews| Index: content/common/gpu/gpu_command_buffer_stub.cc |
| =================================================================== |
| --- content/common/gpu/gpu_command_buffer_stub.cc (revision 94701) |
| +++ content/common/gpu/gpu_command_buffer_stub.cc (working copy) |
| @@ -73,6 +73,8 @@ |
| IPC_BEGIN_MESSAGE_MAP(GpuCommandBufferStub, message) |
| IPC_MESSAGE_HANDLER_DELAY_REPLY(GpuCommandBufferMsg_Initialize, |
| OnInitialize); |
| + IPC_MESSAGE_HANDLER(GpuCommandBufferMsg_MapExternalResource, |
| + OnMapExternalResource); |
| IPC_MESSAGE_HANDLER_DELAY_REPLY(GpuCommandBufferMsg_SetParent, |
| OnSetParent); |
| IPC_MESSAGE_HANDLER_DELAY_REPLY(GpuCommandBufferMsg_GetState, OnGetState); |
| @@ -246,6 +248,22 @@ |
| Send(reply_message); |
| } |
| + |
|
jamesr
2011/07/29 19:55:08
nit: extra newline
|
| +void GpuCommandBufferStub::OnMapExternalResource( |
| + gpu::resource_type::ResourceType resource_type, |
| + uint32 resource_source_id, |
| + int32 source_route_id, |
| + uint32 resource_dest_id) { |
| + GpuCommandBufferStub* source_stub = |
| + channel_->LookupCommandBuffer(source_route_id); |
| + |
| + scheduler_->MapExternalResource( |
| + resource_type, |
| + resource_source_id, |
| + source_stub ? source_stub->scheduler() : NULL, |
| + resource_dest_id); |
| +} |
| + |
| void GpuCommandBufferStub::OnSetParent(int32 parent_route_id, |
| uint32 parent_texture_id, |
| IPC::Message* reply_message) { |