| 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 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 291 // Tells the GPU process to create a new command buffer that renders to an | 291 // Tells the GPU process to create a new command buffer that renders to an |
| 292 // offscreen frame buffer. | 292 // offscreen frame buffer. |
| 293 IPC_SYNC_MESSAGE_CONTROL2_1(GpuChannelMsg_CreateOffscreenCommandBuffer, | 293 IPC_SYNC_MESSAGE_CONTROL2_1(GpuChannelMsg_CreateOffscreenCommandBuffer, |
| 294 gfx::Size, /* size */ | 294 gfx::Size, /* size */ |
| 295 GPUCreateCommandBufferConfig, /* init_params */ | 295 GPUCreateCommandBufferConfig, /* init_params */ |
| 296 int32 /* route_id */) | 296 int32 /* route_id */) |
| 297 | 297 |
| 298 // The CommandBufferProxy sends this to the GpuCommandBufferStub in its | 298 // The CommandBufferProxy sends this to the GpuCommandBufferStub in its |
| 299 // destructor, so that the stub deletes the actual CommandBufferService | 299 // destructor, so that the stub deletes the actual CommandBufferService |
| 300 // object that it's hosting. | 300 // object that it's hosting. |
| 301 // TODO(apatrick): Implement this. | |
| 302 IPC_SYNC_MESSAGE_CONTROL1_0(GpuChannelMsg_DestroyCommandBuffer, | 301 IPC_SYNC_MESSAGE_CONTROL1_0(GpuChannelMsg_DestroyCommandBuffer, |
| 303 int32 /* instance_id */) | 302 int32 /* instance_id */) |
| 304 | 303 |
| 305 // Create a surface for offscreen rendering. | 304 // Create a surface for offscreen rendering. |
| 306 IPC_SYNC_MESSAGE_CONTROL1_1(GpuChannelMsg_CreateOffscreenSurface, | 305 IPC_SYNC_MESSAGE_CONTROL1_1(GpuChannelMsg_CreateOffscreenSurface, |
| 307 gfx::Size, /* size */ | 306 gfx::Size, /* size */ |
| 308 int /* route_id */) | 307 int /* route_id */) |
| 309 | 308 |
| 310 // Destroy a surface by routing id. | 309 // Destroy a surface by routing id. |
| 311 IPC_MESSAGE_CONTROL1(GpuChannelMsg_DestroySurface, | 310 IPC_MESSAGE_CONTROL1(GpuChannelMsg_DestroySurface, |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 347 uint32 /* flush_count */, | 346 uint32 /* flush_count */, |
| 348 gpu::CommandBuffer::State /* state */) | 347 gpu::CommandBuffer::State /* state */) |
| 349 | 348 |
| 350 // Asynchronously synchronize the put and get offsets of both processes. | 349 // Asynchronously synchronize the put and get offsets of both processes. |
| 351 // Caller passes its current put offset. Current state (including get offset) | 350 // Caller passes its current put offset. Current state (including get offset) |
| 352 // is returned via an UpdateState message. | 351 // is returned via an UpdateState message. |
| 353 IPC_MESSAGE_ROUTED2(GpuCommandBufferMsg_AsyncFlush, | 352 IPC_MESSAGE_ROUTED2(GpuCommandBufferMsg_AsyncFlush, |
| 354 int32 /* put_offset */, | 353 int32 /* put_offset */, |
| 355 uint32 /* flush_count */) | 354 uint32 /* flush_count */) |
| 356 | 355 |
| 356 // Asynchronously process any commands known to the GPU process. This is only |
| 357 // used in the event that a channel is unscheduled and needs to be flushed |
| 358 // again to process any commands issued subsequent to unscheduling. The GPU |
| 359 // process actually sends it (deferred) to itself. |
| 360 IPC_MESSAGE_ROUTED0(GpuCommandBufferMsg_Rescheduled); |
| 361 |
| 357 // Return the current state of the command buffer following a request via | 362 // Return the current state of the command buffer following a request via |
| 358 // an AsyncGetState or AsyncFlush message. (This message is sent from the | 363 // an AsyncGetState or AsyncFlush message. (This message is sent from the |
| 359 // GPU process to the renderer process.) | 364 // GPU process to the renderer process.) |
| 360 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_UpdateState, | 365 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_UpdateState, |
| 361 gpu::CommandBuffer::State /* state */) | 366 gpu::CommandBuffer::State /* state */) |
| 362 | 367 |
| 363 // Indicates that a SwapBuffers call has been issued. | 368 // Indicates that a SwapBuffers call has been issued. |
| 364 IPC_MESSAGE_ROUTED0(GpuCommandBufferMsg_SwapBuffers) | 369 IPC_MESSAGE_ROUTED0(GpuCommandBufferMsg_SwapBuffers) |
| 365 | 370 |
| 366 // Create a shared memory transfer buffer. Returns an id that can be used to | 371 // Create a shared memory transfer buffer. Returns an id that can be used to |
| (...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 551 | 556 |
| 552 // Confirm decoder has been aborted. | 557 // Confirm decoder has been aborted. |
| 553 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_AbortDone) | 558 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_AbortDone) |
| 554 | 559 |
| 555 // Decoder has faced end of stream marker in the stream. | 560 // Decoder has faced end of stream marker in the stream. |
| 556 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_EndOfStream) | 561 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_EndOfStream) |
| 557 | 562 |
| 558 // Video decoder has encountered an error. | 563 // Video decoder has encountered an error. |
| 559 IPC_MESSAGE_ROUTED1(AcceleratedVideoDecoderHostMsg_ErrorNotification, | 564 IPC_MESSAGE_ROUTED1(AcceleratedVideoDecoderHostMsg_ErrorNotification, |
| 560 uint32) /* Error ID */ | 565 uint32) /* Error ID */ |
| OLD | NEW |