| 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 457 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 468 // Send input buffer for decoding. | 468 // Send input buffer for decoding. |
| 469 IPC_MESSAGE_ROUTED4(AcceleratedVideoDecoderMsg_Decode, | 469 IPC_MESSAGE_ROUTED4(AcceleratedVideoDecoderMsg_Decode, |
| 470 gpu::ReadWriteTokens, /* tokens */ | 470 gpu::ReadWriteTokens, /* tokens */ |
| 471 base::SharedMemoryHandle, /* input_buffer_handle */ | 471 base::SharedMemoryHandle, /* input_buffer_handle */ |
| 472 int32, /* bitstream_buffer_id */ | 472 int32, /* bitstream_buffer_id */ |
| 473 int32) /* size */ | 473 int32) /* size */ |
| 474 | 474 |
| 475 // Sent from Renderer process to the GPU process to give the texture IDs for | 475 // Sent from Renderer process to the GPU process to give the texture IDs for |
| 476 // the textures the decoder will use for output. Delays evaluation until | 476 // the textures the decoder will use for output. Delays evaluation until |
| 477 // |token.second| is seen. | 477 // |token.second| is seen. |
| 478 IPC_MESSAGE_ROUTED4(AcceleratedVideoDecoderMsg_AssignGLESBuffers, | 478 IPC_MESSAGE_ROUTED4(AcceleratedVideoDecoderMsg_AssignPictureBuffers, |
| 479 gpu::ReadWriteTokens, /* tokens */ | 479 gpu::ReadWriteTokens, /* tokens */ |
| 480 std::vector<int32>, /* Picture buffer ID */ | 480 std::vector<int32>, /* Picture buffer ID */ |
| 481 std::vector<uint32>, /* Texture ID */ | 481 std::vector<uint32>, /* Texture ID */ |
| 482 std::vector<gfx::Size>) /* Size */ | 482 std::vector<gfx::Size>) /* Size */ |
| 483 | 483 |
| 484 // Send from Renderer process to the GPU process to recycle the given picture | 484 // Send from Renderer process to the GPU process to recycle the given picture |
| 485 // buffer for further decoding. | 485 // buffer for further decoding. |
| 486 IPC_MESSAGE_ROUTED2(AcceleratedVideoDecoderMsg_ReusePictureBuffer, | 486 IPC_MESSAGE_ROUTED2(AcceleratedVideoDecoderMsg_ReusePictureBuffer, |
| 487 gpu::ReadWriteTokens, /* tokens */ | 487 gpu::ReadWriteTokens, /* tokens */ |
| 488 int32) /* Picture buffer ID */ | 488 int32) /* Picture buffer ID */ |
| (...skipping 14 matching lines...) Expand all Loading... |
| 503 // Accelerated Video Decoder Host Messages | 503 // Accelerated Video Decoder Host Messages |
| 504 // These messages are sent from GPU process to Renderer process. | 504 // These messages are sent from GPU process to Renderer process. |
| 505 // Inform AcceleratedVideoDecoderHost that AcceleratedVideoDecoder has been | 505 // Inform AcceleratedVideoDecoderHost that AcceleratedVideoDecoder has been |
| 506 // created. | 506 // created. |
| 507 | 507 |
| 508 // Accelerated video decoder has consumed input buffer from transfer buffer. | 508 // Accelerated video decoder has consumed input buffer from transfer buffer. |
| 509 IPC_MESSAGE_ROUTED1(AcceleratedVideoDecoderHostMsg_BitstreamBufferProcessed, | 509 IPC_MESSAGE_ROUTED1(AcceleratedVideoDecoderHostMsg_BitstreamBufferProcessed, |
| 510 int32) /* Processed buffer ID */ | 510 int32) /* Processed buffer ID */ |
| 511 | 511 |
| 512 // Allocate video frames for output of the hardware video decoder. | 512 // Allocate video frames for output of the hardware video decoder. |
| 513 IPC_MESSAGE_ROUTED3(AcceleratedVideoDecoderHostMsg_ProvidePictureBuffers, | 513 IPC_MESSAGE_ROUTED2(AcceleratedVideoDecoderHostMsg_ProvidePictureBuffers, |
| 514 int32, /* Number of video frames to generate */ | 514 int32, /* Number of video frames to generate */ |
| 515 gfx::Size, /* Requested size of buffer */ | 515 gfx::Size) /* Requested size of buffer */ |
| 516 int32) /* Type of buffer */ | |
| 517 | 516 |
| 518 // Notify client that decoder has been initialized. | 517 // Notify client that decoder has been initialized. |
| 519 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_InitializeDone) | 518 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_InitializeDone) |
| 520 | 519 |
| 521 // Decoder reports that a picture is ready and buffer does not need to be passed | 520 // Decoder reports that a picture is ready and buffer does not need to be passed |
| 522 // back to the decoder. | 521 // back to the decoder. |
| 523 IPC_MESSAGE_ROUTED1(AcceleratedVideoDecoderHostMsg_DismissPictureBuffer, | 522 IPC_MESSAGE_ROUTED1(AcceleratedVideoDecoderHostMsg_DismissPictureBuffer, |
| 524 int32) /* Picture buffer ID */ | 523 int32) /* Picture buffer ID */ |
| 525 | 524 |
| 526 // Decoder reports that a picture is ready. | 525 // Decoder reports that a picture is ready. |
| 527 IPC_MESSAGE_ROUTED4(AcceleratedVideoDecoderHostMsg_PictureReady, | 526 IPC_MESSAGE_ROUTED2(AcceleratedVideoDecoderHostMsg_PictureReady, |
| 528 int32, /* Picture buffer ID */ | 527 int32, /* Picture buffer ID */ |
| 529 int32, /* Bitstream buffer ID */ | 528 int32) /* Bitstream buffer ID */ |
| 530 gfx::Size, /* Visible size */ | |
| 531 gfx::Size) /* Decoded size */ | |
| 532 | 529 |
| 533 // Confirm decoder has been flushed. | 530 // Confirm decoder has been flushed. |
| 534 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_FlushDone) | 531 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_FlushDone) |
| 535 | 532 |
| 536 // Confirm decoder has been reset. | 533 // Confirm decoder has been reset. |
| 537 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_ResetDone) | 534 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_ResetDone) |
| 538 | 535 |
| 539 // Decoder has faced end of stream marker in the stream. | 536 // Decoder has faced end of stream marker in the stream. |
| 540 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_EndOfStream) | 537 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_EndOfStream) |
| 541 | 538 |
| 542 // Video decoder has encountered an error. | 539 // Video decoder has encountered an error. |
| 543 IPC_MESSAGE_ROUTED1(AcceleratedVideoDecoderHostMsg_ErrorNotification, | 540 IPC_MESSAGE_ROUTED1(AcceleratedVideoDecoderHostMsg_ErrorNotification, |
| 544 uint32) /* Error ID */ | 541 uint32) /* Error ID */ |
| OLD | NEW |