| 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 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 300 | 300 |
| 301 // Destroy a surface by routing id. | 301 // Destroy a surface by routing id. |
| 302 IPC_MESSAGE_CONTROL1(GpuChannelMsg_DestroySurface, | 302 IPC_MESSAGE_CONTROL1(GpuChannelMsg_DestroySurface, |
| 303 int /* route_id */) | 303 int /* route_id */) |
| 304 | 304 |
| 305 // Create a TransportTexture corresponding to |host_id|. | 305 // Create a TransportTexture corresponding to |host_id|. |
| 306 IPC_MESSAGE_CONTROL2(GpuChannelMsg_CreateTransportTexture, | 306 IPC_MESSAGE_CONTROL2(GpuChannelMsg_CreateTransportTexture, |
| 307 int32, /* context_route_id */ | 307 int32, /* context_route_id */ |
| 308 int32 /* host_id */) | 308 int32 /* host_id */) |
| 309 | 309 |
| 310 // Request that the GPU process reply with the given message. |
| 311 IPC_MESSAGE_CONTROL1(GpuChannelMsg_Echo, |
| 312 IPC::Message /* reply */) |
| 313 |
| 310 //------------------------------------------------------------------------------ | 314 //------------------------------------------------------------------------------ |
| 311 // GPU Command Buffer Messages | 315 // GPU Command Buffer Messages |
| 312 // These are messages between a renderer process to the GPU process relating to | 316 // These are messages between a renderer process to the GPU process relating to |
| 313 // a single OpenGL context. | 317 // a single OpenGL context. |
| 314 // Initialize a command buffer with the given number of command entries. | 318 // Initialize a command buffer with the given number of command entries. |
| 315 // Returns the shared memory handle for the command buffer mapped to the | 319 // Returns the shared memory handle for the command buffer mapped to the |
| 316 // calling process. | 320 // calling process. |
| 317 IPC_SYNC_MESSAGE_ROUTED2_1(GpuCommandBufferMsg_Initialize, | 321 IPC_SYNC_MESSAGE_ROUTED2_1(GpuCommandBufferMsg_Initialize, |
| 318 base::SharedMemoryHandle /* ring_buffer */, | 322 base::SharedMemoryHandle /* ring_buffer */, |
| 319 int32 /* size */, | 323 int32 /* size */, |
| (...skipping 30 matching lines...) Expand all Loading... |
| 350 // again to process any commands issued subsequent to unscheduling. The GPU | 354 // again to process any commands issued subsequent to unscheduling. The GPU |
| 351 // process actually sends it (deferred) to itself. | 355 // process actually sends it (deferred) to itself. |
| 352 IPC_MESSAGE_ROUTED0(GpuCommandBufferMsg_Rescheduled) | 356 IPC_MESSAGE_ROUTED0(GpuCommandBufferMsg_Rescheduled) |
| 353 | 357 |
| 354 // Return the current state of the command buffer following a request via | 358 // Return the current state of the command buffer following a request via |
| 355 // an AsyncGetState or AsyncFlush message. (This message is sent from the | 359 // an AsyncGetState or AsyncFlush message. (This message is sent from the |
| 356 // GPU process to the renderer process.) | 360 // GPU process to the renderer process.) |
| 357 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_UpdateState, | 361 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_UpdateState, |
| 358 gpu::CommandBuffer::State /* state */) | 362 gpu::CommandBuffer::State /* state */) |
| 359 | 363 |
| 360 // Indicates that a SwapBuffers call has been issued. | |
| 361 IPC_MESSAGE_ROUTED0(GpuCommandBufferMsg_SwapBuffers) | |
| 362 | |
| 363 // Create a shared memory transfer buffer. Returns an id that can be used to | 364 // Create a shared memory transfer buffer. Returns an id that can be used to |
| 364 // identify the transfer buffer from a comment. | 365 // identify the transfer buffer from a comment. |
| 365 IPC_SYNC_MESSAGE_ROUTED2_1(GpuCommandBufferMsg_CreateTransferBuffer, | 366 IPC_SYNC_MESSAGE_ROUTED2_1(GpuCommandBufferMsg_CreateTransferBuffer, |
| 366 int32 /* size */, | 367 int32 /* size */, |
| 367 int32 /* id_request (-1 means any) */, | 368 int32 /* id_request (-1 means any) */, |
| 368 int32 /* id */) | 369 int32 /* id */) |
| 369 | 370 |
| 370 // Register an existing shared memory transfer buffer. Returns an id that can be | 371 // Register an existing shared memory transfer buffer. Returns an id that can be |
| 371 // used to identify the transfer buffer from a command buffer. | 372 // used to identify the transfer buffer from a command buffer. |
| 372 IPC_SYNC_MESSAGE_ROUTED3_1(GpuCommandBufferMsg_RegisterTransferBuffer, | 373 IPC_SYNC_MESSAGE_ROUTED3_1(GpuCommandBufferMsg_RegisterTransferBuffer, |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 411 // browser. This message is currently used only on 10.6 and later. | 412 // browser. This message is currently used only on 10.6 and later. |
| 412 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_SetWindowSize, | 413 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_SetWindowSize, |
| 413 gfx::Size /* size */) | 414 gfx::Size /* size */) |
| 414 #endif | 415 #endif |
| 415 | 416 |
| 416 // Tells the proxy that there was an error and the command buffer had to be | 417 // Tells the proxy that there was an error and the command buffer had to be |
| 417 // destroyed for some reason. | 418 // destroyed for some reason. |
| 418 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_Destroyed, | 419 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_Destroyed, |
| 419 gpu::error::ContextLostReason /* reason */) | 420 gpu::error::ContextLostReason /* reason */) |
| 420 | 421 |
| 422 // Response to a GpuChannelMsg_Echo message. |
| 423 IPC_MESSAGE_ROUTED0(GpuCommandBufferMsg_EchoAck) |
| 424 |
| 421 // -------------------------------------------------------------------------- | 425 // -------------------------------------------------------------------------- |
| 422 // TransportTexture messages | 426 // TransportTexture messages |
| 423 // | 427 // |
| 424 // These are messages sent from renderer process to the GPU proess. | 428 // These are messages sent from renderer process to the GPU proess. |
| 425 | 429 |
| 426 // Destroy corresponding TransportTexture in the GPU process. | 430 // Destroy corresponding TransportTexture in the GPU process. |
| 427 IPC_MESSAGE_ROUTED0(GpuTransportTextureMsg_Destroy) | 431 IPC_MESSAGE_ROUTED0(GpuTransportTextureMsg_Destroy) |
| 428 | 432 |
| 429 // Notify that the textures have been created. IDs are in client context. | 433 // Notify that the textures have been created. IDs are in client context. |
| 430 IPC_MESSAGE_ROUTED1(GpuTransportTextureMsg_TexturesCreated, | 434 IPC_MESSAGE_ROUTED1(GpuTransportTextureMsg_TexturesCreated, |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 513 | 517 |
| 514 // Confirm decoder has been reset. | 518 // Confirm decoder has been reset. |
| 515 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_ResetDone) | 519 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_ResetDone) |
| 516 | 520 |
| 517 // Decoder has faced end of stream marker in the stream. | 521 // Decoder has faced end of stream marker in the stream. |
| 518 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_EndOfStream) | 522 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_EndOfStream) |
| 519 | 523 |
| 520 // Video decoder has encountered an error. | 524 // Video decoder has encountered an error. |
| 521 IPC_MESSAGE_ROUTED1(AcceleratedVideoDecoderHostMsg_ErrorNotification, | 525 IPC_MESSAGE_ROUTED1(AcceleratedVideoDecoderHostMsg_ErrorNotification, |
| 522 uint32) /* Error ID */ | 526 uint32) /* Error ID */ |
| OLD | NEW |