OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 <vector> | 8 #include <vector> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
304 // renderer go into the lost state. | 304 // renderer go into the lost state. |
305 IPC_MESSAGE_CONTROL0(GpuChannelMsg_CloseChannel) | 305 IPC_MESSAGE_CONTROL0(GpuChannelMsg_CloseChannel) |
306 | 306 |
307 //------------------------------------------------------------------------------ | 307 //------------------------------------------------------------------------------ |
308 // GPU Command Buffer Messages | 308 // GPU Command Buffer Messages |
309 // These are messages between a renderer process to the GPU process relating to | 309 // These are messages between a renderer process to the GPU process relating to |
310 // a single OpenGL context. | 310 // a single OpenGL context. |
311 // Initialize a command buffer with the given number of command entries. | 311 // Initialize a command buffer with the given number of command entries. |
312 // Returns the shared memory handle for the command buffer mapped to the | 312 // Returns the shared memory handle for the command buffer mapped to the |
313 // calling process. | 313 // calling process. |
314 IPC_SYNC_MESSAGE_ROUTED2_1(GpuCommandBufferMsg_Initialize, | 314 IPC_SYNC_MESSAGE_ROUTED0_1(GpuCommandBufferMsg_Initialize, |
315 base::SharedMemoryHandle /* ring_buffer */, | |
316 int32 /* size */, | |
317 bool /* result */) | 315 bool /* result */) |
318 | 316 |
| 317 // Sets the shared memory buffer used for commands. |
| 318 IPC_SYNC_MESSAGE_ROUTED1_0(GpuCommandBufferMsg_SetGetBuffer, |
| 319 int32 /* shm_id */) |
| 320 |
319 // Sets the parent command buffer. This allows the parent and child to share | 321 // Sets the parent command buffer. This allows the parent and child to share |
320 // textures. | 322 // textures. |
321 IPC_SYNC_MESSAGE_ROUTED2_1(GpuCommandBufferMsg_SetParent, | 323 IPC_SYNC_MESSAGE_ROUTED2_1(GpuCommandBufferMsg_SetParent, |
322 int32 /* parent_route_id */, | 324 int32 /* parent_route_id */, |
323 uint32 /* parent_texture_id */, | 325 uint32 /* parent_texture_id */, |
324 bool /* result */) | 326 bool /* result */) |
325 | 327 |
326 // Get the current state of the command buffer. | 328 // Get the current state of the command buffer. |
327 IPC_SYNC_MESSAGE_ROUTED0_1(GpuCommandBufferMsg_GetState, | 329 IPC_SYNC_MESSAGE_ROUTED0_1(GpuCommandBufferMsg_GetState, |
328 gpu::CommandBuffer::State /* state */) | 330 gpu::CommandBuffer::State /* state */) |
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
508 | 510 |
509 // Confirm decoder has been reset. | 511 // Confirm decoder has been reset. |
510 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_ResetDone) | 512 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_ResetDone) |
511 | 513 |
512 // Decoder has faced end of stream marker in the stream. | 514 // Decoder has faced end of stream marker in the stream. |
513 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_EndOfStream) | 515 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_EndOfStream) |
514 | 516 |
515 // Video decoder has encountered an error. | 517 // Video decoder has encountered an error. |
516 IPC_MESSAGE_ROUTED1(AcceleratedVideoDecoderHostMsg_ErrorNotification, | 518 IPC_MESSAGE_ROUTED1(AcceleratedVideoDecoderHostMsg_ErrorNotification, |
517 uint32) /* Error ID */ | 519 uint32) /* Error ID */ |
OLD | NEW |