| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // Multiply-included message file, hence no include guard here, but see below | 5 // Multiply-included message file, hence no include guard here, but see below |
| 6 // for a much smaller-than-usual include guard section. | 6 // for a much smaller-than-usual include guard section. |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 258 gfx::GLSurfaceHandle, /* compositing_surface */ | 258 gfx::GLSurfaceHandle, /* compositing_surface */ |
| 259 int32, /* surface_id */ | 259 int32, /* surface_id */ |
| 260 int32, /* client_id */ | 260 int32, /* client_id */ |
| 261 GPUCreateCommandBufferConfig, /* init_params */ | 261 GPUCreateCommandBufferConfig, /* init_params */ |
| 262 int32 /* route_id */) | 262 int32 /* route_id */) |
| 263 | 263 |
| 264 // Tells the GPU process to create a new gpu memory buffer for |handle|. | 264 // Tells the GPU process to create a new gpu memory buffer for |handle|. |
| 265 IPC_MESSAGE_CONTROL4(GpuMsg_CreateGpuMemoryBuffer, | 265 IPC_MESSAGE_CONTROL4(GpuMsg_CreateGpuMemoryBuffer, |
| 266 gfx::GpuMemoryBufferHandle, /* handle */ | 266 gfx::GpuMemoryBufferHandle, /* handle */ |
| 267 gfx::Size, /* size */ | 267 gfx::Size, /* size */ |
| 268 unsigned, /* internalformat */ | 268 gfx::GpuMemoryBuffer::Format, /* format */ |
| 269 unsigned /* usage */) | 269 gfx::GpuMemoryBuffer::Usage /* usage */) |
| 270 | 270 |
| 271 // Tells the GPU process to destroy buffer. | 271 // Tells the GPU process to destroy buffer. |
| 272 IPC_MESSAGE_CONTROL2(GpuMsg_DestroyGpuMemoryBuffer, | 272 IPC_MESSAGE_CONTROL2(GpuMsg_DestroyGpuMemoryBuffer, |
| 273 gfx::GpuMemoryBufferHandle, /* handle */ | 273 gfx::GpuMemoryBufferHandle, /* handle */ |
| 274 int32 /* sync_point */) | 274 int32 /* sync_point */) |
| 275 | 275 |
| 276 // Tells the GPU process to create a context for collecting graphics card | 276 // Tells the GPU process to create a context for collecting graphics card |
| 277 // information. | 277 // information. |
| 278 IPC_MESSAGE_CONTROL0(GpuMsg_CollectGraphicsInfo) | 278 IPC_MESSAGE_CONTROL0(GpuMsg_CollectGraphicsInfo) |
| 279 | 279 |
| (...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 584 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_SignalSyncPointAck, | 584 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_SignalSyncPointAck, |
| 585 uint32 /* signal_id */) | 585 uint32 /* signal_id */) |
| 586 | 586 |
| 587 // Makes this command buffer signal when a query is reached, by sending | 587 // Makes this command buffer signal when a query is reached, by sending |
| 588 // back a GpuCommandBufferMsg_SignalSyncPointAck message with the same | 588 // back a GpuCommandBufferMsg_SignalSyncPointAck message with the same |
| 589 // signal_id. | 589 // signal_id. |
| 590 IPC_MESSAGE_ROUTED2(GpuCommandBufferMsg_SignalQuery, | 590 IPC_MESSAGE_ROUTED2(GpuCommandBufferMsg_SignalQuery, |
| 591 uint32 /* query */, | 591 uint32 /* query */, |
| 592 uint32 /* signal_id */) | 592 uint32 /* signal_id */) |
| 593 | 593 |
| 594 // Register an existing gpu memory buffer. The id that can be | 594 // Create an image from an existing gpu memory buffer. The id that can be |
| 595 // used to identify the gpu memory buffer from a command buffer. | 595 // used to identify the image from a command buffer. |
| 596 IPC_MESSAGE_ROUTED5(GpuCommandBufferMsg_RegisterGpuMemoryBuffer, | 596 IPC_MESSAGE_ROUTED5(GpuCommandBufferMsg_CreateImage, |
| 597 int32 /* id */, | 597 int32 /* id */, |
| 598 gfx::GpuMemoryBufferHandle /* gpu_memory_buffer */, | 598 gfx::GpuMemoryBufferHandle /* gpu_memory_buffer */, |
| 599 uint32 /* width */, | 599 gfx::Size /* size */, |
| 600 uint32 /* height */, | 600 gfx::GpuMemoryBuffer::Format /* format */, |
| 601 uint32 /* internalformat */) | 601 uint32 /* internalformat */) |
| 602 | 602 |
| 603 // Unregister a previously registered gpu memory buffer. | 603 // Destroy a previously created image. |
| 604 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_UnregisterGpuMemoryBuffer, | 604 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_DestroyImage, |
| 605 int32 /* id */) | 605 int32 /* id */) |
| 606 | 606 |
| 607 // Attaches an external image stream to the client texture. | 607 // Attaches an external image stream to the client texture. |
| 608 IPC_SYNC_MESSAGE_ROUTED2_1(GpuCommandBufferMsg_CreateStreamTexture, | 608 IPC_SYNC_MESSAGE_ROUTED2_1(GpuCommandBufferMsg_CreateStreamTexture, |
| 609 uint32, /* client_texture_id */ | 609 uint32, /* client_texture_id */ |
| 610 int32, /* stream_id */ | 610 int32, /* stream_id */ |
| 611 bool /* succeeded */) | 611 bool /* succeeded */) |
| 612 | 612 |
| 613 //------------------------------------------------------------------------------ | 613 //------------------------------------------------------------------------------ |
| 614 // Accelerated Video Decoder Messages | 614 // Accelerated Video Decoder Messages |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 724 int32 /* bitstream_buffer_id */, | 724 int32 /* bitstream_buffer_id */, |
| 725 uint32 /* payload_size */, | 725 uint32 /* payload_size */, |
| 726 bool /* key_frame */) | 726 bool /* key_frame */) |
| 727 | 727 |
| 728 // Report error condition. | 728 // Report error condition. |
| 729 IPC_MESSAGE_ROUTED1(AcceleratedVideoEncoderHostMsg_NotifyError, | 729 IPC_MESSAGE_ROUTED1(AcceleratedVideoEncoderHostMsg_NotifyError, |
| 730 media::VideoEncodeAccelerator::Error /* error */) | 730 media::VideoEncodeAccelerator::Error /* error */) |
| 731 | 731 |
| 732 // Send destroy request to the encoder. | 732 // Send destroy request to the encoder. |
| 733 IPC_MESSAGE_ROUTED0(AcceleratedVideoEncoderMsg_Destroy) | 733 IPC_MESSAGE_ROUTED0(AcceleratedVideoEncoderMsg_Destroy) |
| OLD | NEW |