Chromium Code Reviews| Index: content/common/gpu/gpu_channel_manager.cc |
| diff --git a/content/common/gpu/gpu_channel_manager.cc b/content/common/gpu/gpu_channel_manager.cc |
| index 3e056e5e7cb7b5fc436dba37c509e2207fe1cc34..b56c43953b0856473b57bff315c8a9dba577001d 100644 |
| --- a/content/common/gpu/gpu_channel_manager.cc |
| +++ b/content/common/gpu/gpu_channel_manager.cc |
| @@ -110,6 +110,8 @@ bool GpuChannelManager::OnMessageReceived(const IPC::Message& msg) { |
| OnCreateViewCommandBuffer) |
| IPC_MESSAGE_HANDLER(GpuMsg_CreateImage, OnCreateImage) |
| IPC_MESSAGE_HANDLER(GpuMsg_DeleteImage, OnDeleteImage) |
| + IPC_MESSAGE_HANDLER(GpuMsg_CreateGpuMemoryBuffer, OnCreateGpuMemoryBuffer) |
| + IPC_MESSAGE_HANDLER(GpuMsg_DestroyGpuMemoryBuffer, OnDestroyGpuMemoryBuffer) |
| IPC_MESSAGE_HANDLER(GpuMsg_LoadedShader, OnLoadedShader) |
| IPC_MESSAGE_UNHANDLED(handled = false) |
| IPC_END_MESSAGE_MAP() |
| @@ -255,6 +257,20 @@ void GpuChannelManager::OnDeleteImageSyncPointRetired( |
| } |
| } |
| +void GpuChannelManager::OnCreateGpuMemoryBuffer( |
| + const gfx::GpuMemoryBufferHandle& handle, |
| + const gfx::Size& size, |
| + unsigned internalformat, |
| + unsigned usage) { |
| + Send(new GpuHostMsg_GpuMemoryBufferCreated(gfx::GpuMemoryBufferHandle())); |
| +} |
| + |
| +void GpuChannelManager::OnDestroyGpuMemoryBuffer( |
| + const gfx::GpuMemoryBufferHandle& handle, |
| + int32 sync_point) { |
| + NOTIMPLEMENTED(); |
|
reveman
2014/06/11 14:03:22
I don't think this should be here. You've implemen
alexst (slow to review)
2014/06/11 14:18:59
Done.
|
| +} |
| + |
| void GpuChannelManager::OnLoadedShader(std::string program_proto) { |
| if (program_cache()) |
| program_cache()->LoadProgram(program_proto); |