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. |
303 IPC_SYNC_MESSAGE_CONTROL1_0(GpuChannelMsg_DestroyCommandBuffer, | 304 IPC_SYNC_MESSAGE_CONTROL1_0(GpuChannelMsg_DestroyCommandBuffer, |
304 int32 /* instance_id */) | 305 int32 /* instance_id */) |
305 | 306 |
306 // Create a surface for offscreen rendering. | 307 // Create a surface for offscreen rendering. |
307 IPC_SYNC_MESSAGE_CONTROL1_1(GpuChannelMsg_CreateOffscreenSurface, | 308 IPC_SYNC_MESSAGE_CONTROL1_1(GpuChannelMsg_CreateOffscreenSurface, |
308 gfx::Size, /* size */ | 309 gfx::Size, /* size */ |
309 int /* route_id */) | 310 int /* route_id */) |
310 | 311 |
311 // Destroy a surface by routing id. | 312 // Destroy a surface by routing id. |
312 IPC_MESSAGE_CONTROL1(GpuChannelMsg_DestroySurface, | 313 IPC_MESSAGE_CONTROL1(GpuChannelMsg_DestroySurface, |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
348 uint32 /* flush_count */, | 349 uint32 /* flush_count */, |
349 gpu::CommandBuffer::State /* state */) | 350 gpu::CommandBuffer::State /* state */) |
350 | 351 |
351 // Asynchronously synchronize the put and get offsets of both processes. | 352 // Asynchronously synchronize the put and get offsets of both processes. |
352 // Caller passes its current put offset. Current state (including get offset) | 353 // Caller passes its current put offset. Current state (including get offset) |
353 // is returned via an UpdateState message. | 354 // is returned via an UpdateState message. |
354 IPC_MESSAGE_ROUTED2(GpuCommandBufferMsg_AsyncFlush, | 355 IPC_MESSAGE_ROUTED2(GpuCommandBufferMsg_AsyncFlush, |
355 int32 /* put_offset */, | 356 int32 /* put_offset */, |
356 uint32 /* flush_count */) | 357 uint32 /* flush_count */) |
357 | 358 |
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 | |
364 // Return the current state of the command buffer following a request via | 359 // Return the current state of the command buffer following a request via |
365 // an AsyncGetState or AsyncFlush message. (This message is sent from the | 360 // an AsyncGetState or AsyncFlush message. (This message is sent from the |
366 // GPU process to the renderer process.) | 361 // GPU process to the renderer process.) |
367 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_UpdateState, | 362 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_UpdateState, |
368 gpu::CommandBuffer::State /* state */) | 363 gpu::CommandBuffer::State /* state */) |
369 | 364 |
370 // Indicates that a SwapBuffers call has been issued. | 365 // Indicates that a SwapBuffers call has been issued. |
371 IPC_MESSAGE_ROUTED0(GpuCommandBufferMsg_SwapBuffers) | 366 IPC_MESSAGE_ROUTED0(GpuCommandBufferMsg_SwapBuffers) |
372 | 367 |
373 // Create a shared memory transfer buffer. Returns an id that can be used to | 368 // Create a shared memory transfer buffer. Returns an id that can be used to |
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
537 | 532 |
538 // Confirm decoder has been reset. | 533 // Confirm decoder has been reset. |
539 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_ResetDone) | 534 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_ResetDone) |
540 | 535 |
541 // Decoder has faced end of stream marker in the stream. | 536 // Decoder has faced end of stream marker in the stream. |
542 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_EndOfStream) | 537 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_EndOfStream) |
543 | 538 |
544 // Video decoder has encountered an error. | 539 // Video decoder has encountered an error. |
545 IPC_MESSAGE_ROUTED1(AcceleratedVideoDecoderHostMsg_ErrorNotification, | 540 IPC_MESSAGE_ROUTED1(AcceleratedVideoDecoderHostMsg_ErrorNotification, |
546 uint32) /* Error ID */ | 541 uint32) /* Error ID */ |
OLD | NEW |