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