OLD | NEW |
---|---|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 691 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
702 // Video decoder has encountered an error. | 702 // Video decoder has encountered an error. |
703 IPC_MESSAGE_ROUTED1(AcceleratedVideoDecoderHostMsg_ErrorNotification, | 703 IPC_MESSAGE_ROUTED1(AcceleratedVideoDecoderHostMsg_ErrorNotification, |
704 uint32) /* Error ID */ | 704 uint32) /* Error ID */ |
705 | 705 |
706 //------------------------------------------------------------------------------ | 706 //------------------------------------------------------------------------------ |
707 // Accelerated Video Encoder Messages | 707 // Accelerated Video Encoder Messages |
708 // These messages are sent from the Renderer process to GPU process. | 708 // These messages are sent from the Renderer process to GPU process. |
709 | 709 |
710 // Queue a input buffer to the encoder to encode. |frame_id| will be returned by | 710 // Queue a input buffer to the encoder to encode. |frame_id| will be returned by |
711 // AcceleratedVideoEncoderHostMsg_NotifyInputDone. | 711 // AcceleratedVideoEncoderHostMsg_NotifyInputDone. |
712 IPC_MESSAGE_ROUTED4(AcceleratedVideoEncoderMsg_Encode, | 712 IPC_MESSAGE_ROUTED5(AcceleratedVideoEncoderMsg_Encode, |
713 int32 /* frame_id */, | 713 int32 /* frame_id */, |
714 base::SharedMemoryHandle /* buffer_handle */, | 714 base::SharedMemoryHandle /* buffer_handle */, |
715 uint32 /* buffer_offset */, | |
DaleCurtis
2015/01/30 18:44:59
This seems dangerous...
llandwerlin-old
2015/01/31 22:42:53
Can you explain why you think this could be danger
DaleCurtis
2015/02/02 19:24:18
An attacker controls both the buffer_offset and bu
| |
715 uint32 /* buffer_size */, | 716 uint32 /* buffer_size */, |
716 bool /* force_keyframe */) | 717 bool /* force_keyframe */) |
717 | 718 |
718 // Queue a buffer to the encoder for use in returning output. |buffer_id| will | 719 // Queue a buffer to the encoder for use in returning output. |buffer_id| will |
719 // be returned by AcceleratedVideoEncoderHostMsg_BitstreamBufferReady. | 720 // be returned by AcceleratedVideoEncoderHostMsg_BitstreamBufferReady. |
720 IPC_MESSAGE_ROUTED3(AcceleratedVideoEncoderMsg_UseOutputBitstreamBuffer, | 721 IPC_MESSAGE_ROUTED3(AcceleratedVideoEncoderMsg_UseOutputBitstreamBuffer, |
721 int32 /* buffer_id */, | 722 int32 /* buffer_id */, |
722 base::SharedMemoryHandle /* buffer_handle */, | 723 base::SharedMemoryHandle /* buffer_handle */, |
723 uint32 /* buffer_size */) | 724 uint32 /* buffer_size */) |
724 | 725 |
(...skipping 24 matching lines...) Expand all Loading... | |
749 int32 /* bitstream_buffer_id */, | 750 int32 /* bitstream_buffer_id */, |
750 uint32 /* payload_size */, | 751 uint32 /* payload_size */, |
751 bool /* key_frame */) | 752 bool /* key_frame */) |
752 | 753 |
753 // Report error condition. | 754 // Report error condition. |
754 IPC_MESSAGE_ROUTED1(AcceleratedVideoEncoderHostMsg_NotifyError, | 755 IPC_MESSAGE_ROUTED1(AcceleratedVideoEncoderHostMsg_NotifyError, |
755 media::VideoEncodeAccelerator::Error /* error */) | 756 media::VideoEncodeAccelerator::Error /* error */) |
756 | 757 |
757 // Send destroy request to the encoder. | 758 // Send destroy request to the encoder. |
758 IPC_MESSAGE_ROUTED0(AcceleratedVideoEncoderMsg_Destroy) | 759 IPC_MESSAGE_ROUTED0(AcceleratedVideoEncoderMsg_Destroy) |
OLD | NEW |