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 <vector> | 8 #include <vector> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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_ROUTED0_1(GpuCommandBufferMsg_Initialize, | 314 IPC_SYNC_MESSAGE_ROUTED0_1(GpuCommandBufferMsg_Initialize, |
315 bool /* result */) | 315 bool /* result */) |
316 | 316 |
| 317 // Sets the shared memory buffer used to hold the CommandBufferSharedState, |
| 318 // used to transmit the current state. |
| 319 IPC_SYNC_MESSAGE_ROUTED1_0(GpuCommandBufferMsg_SetSharedStateBuffer, |
| 320 int32 /* shm_id */) |
| 321 |
317 // Sets the shared memory buffer used for commands. | 322 // Sets the shared memory buffer used for commands. |
318 IPC_SYNC_MESSAGE_ROUTED1_0(GpuCommandBufferMsg_SetGetBuffer, | 323 IPC_SYNC_MESSAGE_ROUTED1_0(GpuCommandBufferMsg_SetGetBuffer, |
319 int32 /* shm_id */) | 324 int32 /* shm_id */) |
320 | 325 |
321 // Sets the parent command buffer. This allows the parent and child to share | 326 // Sets the parent command buffer. This allows the parent and child to share |
322 // textures. | 327 // textures. |
323 IPC_SYNC_MESSAGE_ROUTED2_1(GpuCommandBufferMsg_SetParent, | 328 IPC_SYNC_MESSAGE_ROUTED2_1(GpuCommandBufferMsg_SetParent, |
324 int32 /* parent_route_id */, | 329 int32 /* parent_route_id */, |
325 uint32 /* parent_texture_id */, | 330 uint32 /* parent_texture_id */, |
326 bool /* result */) | 331 bool /* result */) |
327 | 332 |
328 // Get the current state of the command buffer. | 333 // Get the current state of the command buffer. |
329 IPC_SYNC_MESSAGE_ROUTED0_1(GpuCommandBufferMsg_GetState, | 334 IPC_SYNC_MESSAGE_ROUTED0_1(GpuCommandBufferMsg_GetState, |
330 gpu::CommandBuffer::State /* state */) | 335 gpu::CommandBuffer::State /* state */) |
331 | 336 |
332 // Get the current state of the command buffer, as fast as possible. | 337 // Get the current state of the command buffer, as fast as possible. |
333 IPC_SYNC_MESSAGE_ROUTED0_1(GpuCommandBufferMsg_GetStateFast, | 338 IPC_SYNC_MESSAGE_ROUTED0_1(GpuCommandBufferMsg_GetStateFast, |
334 gpu::CommandBuffer::State /* state */) | 339 gpu::CommandBuffer::State /* state */) |
335 | 340 |
336 // Asynchronously synchronize the put and get offsets of both processes. | 341 // Asynchronously synchronize the put and get offsets of both processes. |
337 // Caller passes its current put offset. Current state (including get offset) | 342 // Caller passes its current put offset. Current state (including get offset) |
338 // is returned via an UpdateState message. | 343 // is returned in shared memory. |
339 IPC_MESSAGE_ROUTED2(GpuCommandBufferMsg_AsyncFlush, | 344 IPC_MESSAGE_ROUTED2(GpuCommandBufferMsg_AsyncFlush, |
340 int32 /* put_offset */, | 345 int32 /* put_offset */, |
341 uint32 /* flush_count */) | 346 uint32 /* flush_count */) |
342 | 347 |
343 // Asynchronously process any commands known to the GPU process. This is only | 348 // Asynchronously process any commands known to the GPU process. This is only |
344 // used in the event that a channel is unscheduled and needs to be flushed | 349 // used in the event that a channel is unscheduled and needs to be flushed |
345 // again to process any commands issued subsequent to unscheduling. The GPU | 350 // again to process any commands issued subsequent to unscheduling. The GPU |
346 // process actually sends it (deferred) to itself. | 351 // process actually sends it (deferred) to itself. |
347 IPC_MESSAGE_ROUTED0(GpuCommandBufferMsg_Rescheduled) | 352 IPC_MESSAGE_ROUTED0(GpuCommandBufferMsg_Rescheduled) |
348 | 353 |
349 // Return the current state of the command buffer following a request via | |
350 // an AsyncGetState or AsyncFlush message. (This message is sent from the | |
351 // GPU process to the renderer process.) | |
352 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_UpdateState, | |
353 gpu::CommandBuffer::State /* state */) | |
354 | |
355 // Sent by the GPU process to display messages in the console. | 354 // Sent by the GPU process to display messages in the console. |
356 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_ConsoleMsg, | 355 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_ConsoleMsg, |
357 GPUCommandBufferConsoleMessage /* msg */) | 356 GPUCommandBufferConsoleMessage /* msg */) |
358 | 357 |
359 // Create a shared memory transfer buffer. Returns an id that can be used to | 358 // Create a shared memory transfer buffer. Returns an id that can be used to |
360 // identify the transfer buffer from a comment. | 359 // identify the transfer buffer from a comment. |
361 IPC_SYNC_MESSAGE_ROUTED2_1(GpuCommandBufferMsg_CreateTransferBuffer, | 360 IPC_SYNC_MESSAGE_ROUTED2_1(GpuCommandBufferMsg_CreateTransferBuffer, |
362 int32 /* size */, | 361 int32 /* size */, |
363 int32 /* id_request (-1 means any) */, | 362 int32 /* id_request (-1 means any) */, |
364 int32 /* id */) | 363 int32 /* id */) |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
477 | 476 |
478 // Confirm decoder has been flushed. | 477 // Confirm decoder has been flushed. |
479 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_FlushDone) | 478 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_FlushDone) |
480 | 479 |
481 // Confirm decoder has been reset. | 480 // Confirm decoder has been reset. |
482 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_ResetDone) | 481 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_ResetDone) |
483 | 482 |
484 // Video decoder has encountered an error. | 483 // Video decoder has encountered an error. |
485 IPC_MESSAGE_ROUTED1(AcceleratedVideoDecoderHostMsg_ErrorNotification, | 484 IPC_MESSAGE_ROUTED1(AcceleratedVideoDecoderHostMsg_ErrorNotification, |
486 uint32) /* Error ID */ | 485 uint32) /* Error ID */ |
OLD | NEW |