| 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 368 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 379 int32 /* id */) | 379 int32 /* id */) |
| 380 | 380 |
| 381 // Get the shared memory handle for a transfer buffer mapped to the callers | 381 // Get the shared memory handle for a transfer buffer mapped to the callers |
| 382 // process. | 382 // process. |
| 383 IPC_SYNC_MESSAGE_ROUTED1_2(GpuCommandBufferMsg_GetTransferBuffer, | 383 IPC_SYNC_MESSAGE_ROUTED1_2(GpuCommandBufferMsg_GetTransferBuffer, |
| 384 int32 /* id */, | 384 int32 /* id */, |
| 385 base::SharedMemoryHandle /* transfer_buffer */, | 385 base::SharedMemoryHandle /* transfer_buffer */, |
| 386 uint32 /* size */) | 386 uint32 /* size */) |
| 387 | 387 |
| 388 // Create and initialize a hardware video decoder. | 388 // Create and initialize a hardware video decoder. |
| 389 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_CreateVideoDecoder, | 389 IPC_SYNC_MESSAGE_ROUTED1_0(GpuCommandBufferMsg_CreateVideoDecoder, |
| 390 std::vector<uint32> /* configs */) | 390 std::vector<uint32> /* configs */) |
| 391 | 391 |
| 392 // Release all resources held by the hardware video decoder associated with this | 392 // Release all resources held by the hardware video decoder associated with this |
| 393 // stub. | 393 // stub. |
| 394 IPC_SYNC_MESSAGE_ROUTED0_0(GpuCommandBufferMsg_DestroyVideoDecoder) | 394 IPC_SYNC_MESSAGE_ROUTED0_0(GpuCommandBufferMsg_DestroyVideoDecoder) |
| 395 | 395 |
| 396 // Send from command buffer stub to proxy when window is invalid and must be | 396 // Send from command buffer stub to proxy when window is invalid and must be |
| 397 // repainted. | 397 // repainted. |
| 398 IPC_MESSAGE_ROUTED0(GpuCommandBufferMsg_NotifyRepaint) | 398 IPC_MESSAGE_ROUTED0(GpuCommandBufferMsg_NotifyRepaint) |
| 399 | 399 |
| 400 // Tells the GPU process to resize an offscreen frame buffer. | 400 // Tells the GPU process to resize an offscreen frame buffer. |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 489 | 489 |
| 490 // Accelerated video decoder has consumed input buffer from transfer buffer. | 490 // Accelerated video decoder has consumed input buffer from transfer buffer. |
| 491 IPC_MESSAGE_ROUTED1(AcceleratedVideoDecoderHostMsg_BitstreamBufferProcessed, | 491 IPC_MESSAGE_ROUTED1(AcceleratedVideoDecoderHostMsg_BitstreamBufferProcessed, |
| 492 int32) /* Processed buffer ID */ | 492 int32) /* Processed buffer ID */ |
| 493 | 493 |
| 494 // Allocate video frames for output of the hardware video decoder. | 494 // Allocate video frames for output of the hardware video decoder. |
| 495 IPC_MESSAGE_ROUTED2(AcceleratedVideoDecoderHostMsg_ProvidePictureBuffers, | 495 IPC_MESSAGE_ROUTED2(AcceleratedVideoDecoderHostMsg_ProvidePictureBuffers, |
| 496 int32, /* Number of video frames to generate */ | 496 int32, /* Number of video frames to generate */ |
| 497 gfx::Size) /* Requested size of buffer */ | 497 gfx::Size) /* Requested size of buffer */ |
| 498 | 498 |
| 499 // Notify client that decoder has been initialized. | |
| 500 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_InitializeDone) | |
| 501 | |
| 502 // Decoder reports that a picture is ready and buffer does not need to be passed | 499 // Decoder reports that a picture is ready and buffer does not need to be passed |
| 503 // back to the decoder. | 500 // back to the decoder. |
| 504 IPC_MESSAGE_ROUTED1(AcceleratedVideoDecoderHostMsg_DismissPictureBuffer, | 501 IPC_MESSAGE_ROUTED1(AcceleratedVideoDecoderHostMsg_DismissPictureBuffer, |
| 505 int32) /* Picture buffer ID */ | 502 int32) /* Picture buffer ID */ |
| 506 | 503 |
| 507 // Decoder reports that a picture is ready. | 504 // Decoder reports that a picture is ready. |
| 508 IPC_MESSAGE_ROUTED2(AcceleratedVideoDecoderHostMsg_PictureReady, | 505 IPC_MESSAGE_ROUTED2(AcceleratedVideoDecoderHostMsg_PictureReady, |
| 509 int32, /* Picture buffer ID */ | 506 int32, /* Picture buffer ID */ |
| 510 int32) /* Bitstream buffer ID */ | 507 int32) /* Bitstream buffer ID */ |
| 511 | 508 |
| 512 // Confirm decoder has been flushed. | 509 // Confirm decoder has been flushed. |
| 513 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_FlushDone) | 510 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_FlushDone) |
| 514 | 511 |
| 515 // Confirm decoder has been reset. | 512 // Confirm decoder has been reset. |
| 516 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_ResetDone) | 513 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_ResetDone) |
| 517 | 514 |
| 518 // Decoder has faced end of stream marker in the stream. | 515 // Decoder has faced end of stream marker in the stream. |
| 519 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_EndOfStream) | 516 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_EndOfStream) |
| 520 | 517 |
| 521 // Video decoder has encountered an error. | 518 // Video decoder has encountered an error. |
| 522 IPC_MESSAGE_ROUTED1(AcceleratedVideoDecoderHostMsg_ErrorNotification, | 519 IPC_MESSAGE_ROUTED1(AcceleratedVideoDecoderHostMsg_ErrorNotification, |
| 523 uint32) /* Error ID */ | 520 uint32) /* Error ID */ |
| OLD | NEW |