| Index: content/common/gpu/gpu_messages.h
|
| diff --git a/content/common/gpu/gpu_messages.h b/content/common/gpu/gpu_messages.h
|
| index 9e320e0a6d77452a0bd855ca1bfcc937d73b0b2e..b937e4cf9ad0165b37a630c0da73f75a5d672176 100644
|
| --- a/content/common/gpu/gpu_messages.h
|
| +++ b/content/common/gpu/gpu_messages.h
|
| @@ -235,6 +235,16 @@ IPC_STRUCT_TRAITS_BEGIN(gfx::GLSurfaceHandle)
|
| IPC_STRUCT_TRAITS_MEMBER(parent_client_id)
|
| IPC_STRUCT_TRAITS_END()
|
|
|
| +IPC_STRUCT_TRAITS_BEGIN(gfx::GpuMemoryBufferParams)
|
| + IPC_STRUCT_TRAITS_MEMBER(width)
|
| + IPC_STRUCT_TRAITS_MEMBER(height)
|
| + IPC_STRUCT_TRAITS_MEMBER(internalformat)
|
| + IPC_STRUCT_TRAITS_MEMBER(usage)
|
| + IPC_STRUCT_TRAITS_MEMBER(window)
|
| + IPC_STRUCT_TRAITS_MEMBER(process_handle)
|
| + IPC_STRUCT_TRAITS_MEMBER(client_id)
|
| +IPC_STRUCT_TRAITS_END()
|
| +
|
| //------------------------------------------------------------------------------
|
| // GPU Messages
|
| // These are messages from the browser to the GPU process.
|
| @@ -276,6 +286,10 @@ IPC_MESSAGE_CONTROL3(GpuMsg_CreateImage,
|
| int32, /* client_id */
|
| int32 /* image_id */)
|
|
|
| +// Allocate a buffer asynchronously in the GPU process.
|
| +IPC_MESSAGE_CONTROL1(GpuMsg_AllocateGpuMemoryBuffer,
|
| + gfx::GpuMemoryBufferParams /* params */)
|
| +
|
| // Tells the GPU process to delete image.
|
| IPC_MESSAGE_CONTROL3(GpuMsg_DeleteImage,
|
| int32, /* client_id */
|
| @@ -368,6 +382,10 @@ IPC_MESSAGE_CONTROL1(GpuHostMsg_DestroyCommandBuffer,
|
| IPC_MESSAGE_CONTROL1(GpuHostMsg_ImageCreated,
|
| gfx::Size /* size */)
|
|
|
| +// Response from GPU to a GpuMsg_AllocateGpuMemoryBuffer message.
|
| +IPC_MESSAGE_CONTROL1(GpuHostMsg_GpuMemoryBufferAllocated,
|
| + gfx::GpuMemoryBufferHandle /* handle */)
|
| +
|
| // Response from GPU to a GpuMsg_CollectGraphicsInfo.
|
| IPC_MESSAGE_CONTROL1(GpuHostMsg_GraphicsInfoCollected,
|
| gpu::GPUInfo /* GPU logging stats */)
|
|
|