| 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 #include <vector> | 5 #include <vector> |
| 6 #include <string> | 6 #include <string> |
| 7 | 7 |
| 8 | 8 |
| 9 #include "base/shared_memory.h" | 9 #include "base/shared_memory.h" |
| 10 #include "content/common/common_param_traits.h" | 10 #include "content/common/common_param_traits.h" |
| (...skipping 588 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 599 // Allocate video frames for output of the hardware video decoder. | 599 // Allocate video frames for output of the hardware video decoder. |
| 600 IPC_MESSAGE_ROUTED3(AcceleratedVideoDecoderHostMsg_ProvidePictureBuffers, | 600 IPC_MESSAGE_ROUTED3(AcceleratedVideoDecoderHostMsg_ProvidePictureBuffers, |
| 601 int32, /* Number of video frames to generate */ | 601 int32, /* Number of video frames to generate */ |
| 602 gfx::Size, /* Requested size of buffer */ | 602 gfx::Size, /* Requested size of buffer */ |
| 603 int32) /* Type of buffer */ | 603 int32) /* Type of buffer */ |
| 604 | 604 |
| 605 // Decoder has been created and is ready for initialization. | 605 // Decoder has been created and is ready for initialization. |
| 606 IPC_MESSAGE_ROUTED1(AcceleratedVideoDecoderHostMsg_CreateDone, | 606 IPC_MESSAGE_ROUTED1(AcceleratedVideoDecoderHostMsg_CreateDone, |
| 607 int32) /* Decoder ID */ | 607 int32) /* Decoder ID */ |
| 608 | 608 |
| 609 // Notify client that decoder has been initialized. |
| 610 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_InitializeDone) |
| 611 |
| 609 // Decoder reports that a picture is ready and buffer does not need to be passed | 612 // Decoder reports that a picture is ready and buffer does not need to be passed |
| 610 // back to the decoder. | 613 // back to the decoder. |
| 611 IPC_MESSAGE_ROUTED1(AcceleratedVideoDecoderHostMsg_DismissPictureBuffer, | 614 IPC_MESSAGE_ROUTED1(AcceleratedVideoDecoderHostMsg_DismissPictureBuffer, |
| 612 int32) /* Picture buffer ID */ | 615 int32) /* Picture buffer ID */ |
| 613 | 616 |
| 614 // Decoder reports that a picture is ready. | 617 // Decoder reports that a picture is ready. |
| 615 IPC_MESSAGE_ROUTED4(AcceleratedVideoDecoderHostMsg_PictureReady, | 618 IPC_MESSAGE_ROUTED4(AcceleratedVideoDecoderHostMsg_PictureReady, |
| 616 int32, /* Picture buffer ID */ | 619 int32, /* Picture buffer ID */ |
| 617 int32, /* Bitstream buffer ID */ | 620 int32, /* Bitstream buffer ID */ |
| 618 gfx::Size, /* Visible size */ | 621 gfx::Size, /* Visible size */ |
| 619 gfx::Size) /* Decoded size */ | 622 gfx::Size) /* Decoded size */ |
| 620 | 623 |
| 621 // Confirm decoder has been flushed. | 624 // Confirm decoder has been flushed. |
| 622 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_FlushDone) | 625 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_FlushDone) |
| 623 | 626 |
| 624 // Confirm decoder has been aborted. | 627 // Confirm decoder has been aborted. |
| 625 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_AbortDone) | 628 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_AbortDone) |
| 626 | 629 |
| 627 // Decoder has faced end of stream marker in the stream. | 630 // Decoder has faced end of stream marker in the stream. |
| 628 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_EndOfStream) | 631 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_EndOfStream) |
| 629 | 632 |
| 630 // Video decoder has encountered an error. | 633 // Video decoder has encountered an error. |
| 631 IPC_MESSAGE_ROUTED1(AcceleratedVideoDecoderHostMsg_ErrorNotification, | 634 IPC_MESSAGE_ROUTED1(AcceleratedVideoDecoderHostMsg_ErrorNotification, |
| 632 uint32) /* Error ID */ | 635 uint32) /* Error ID */ |
| OLD | NEW |