OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "gpu/config/gpu_info.h" | 8 #include "gpu/config/gpu_info.h" |
9 #include "gpu/ipc/common/gpu_param_traits_macros.h" | 9 #include "gpu/ipc/common/gpu_param_traits_macros.h" |
10 #include "ipc/ipc_message_macros.h" | 10 #include "ipc/ipc_message_macros.h" |
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
189 uint32_t /* output_buffer_size */) | 189 uint32_t /* output_buffer_size */) |
190 | 190 |
191 // Notify the renderer that the encoder has finished using an input buffer. | 191 // Notify the renderer that the encoder has finished using an input buffer. |
192 // There is no congruent entry point in the media::VideoEncodeAccelerator | 192 // There is no congruent entry point in the media::VideoEncodeAccelerator |
193 // interface, in VEA this same done condition is indicated by dropping the | 193 // interface, in VEA this same done condition is indicated by dropping the |
194 // reference to the media::VideoFrame passed to VEA::Encode(). | 194 // reference to the media::VideoFrame passed to VEA::Encode(). |
195 IPC_MESSAGE_ROUTED1(AcceleratedVideoEncoderHostMsg_NotifyInputDone, | 195 IPC_MESSAGE_ROUTED1(AcceleratedVideoEncoderHostMsg_NotifyInputDone, |
196 int32_t /* frame_id */) | 196 int32_t /* frame_id */) |
197 | 197 |
198 // Notify the renderer that an output buffer has been filled with encoded data. | 198 // Notify the renderer that an output buffer has been filled with encoded data. |
199 IPC_MESSAGE_ROUTED3(AcceleratedVideoEncoderHostMsg_BitstreamBufferReady, | 199 IPC_MESSAGE_ROUTED4(AcceleratedVideoEncoderHostMsg_BitstreamBufferReady, |
200 int32_t /* bitstream_buffer_id */, | 200 int32_t /* bitstream_buffer_id */, |
201 uint32_t /* payload_size */, | 201 uint32_t /* payload_size */, |
202 bool /* key_frame */) | 202 bool /* key_frame */, |
| 203 base::TimeDelta /* timestamp */) |
203 | 204 |
204 // Report error condition. | 205 // Report error condition. |
205 IPC_MESSAGE_ROUTED1(AcceleratedVideoEncoderHostMsg_NotifyError, | 206 IPC_MESSAGE_ROUTED1(AcceleratedVideoEncoderHostMsg_NotifyError, |
206 media::VideoEncodeAccelerator::Error /* error */) | 207 media::VideoEncodeAccelerator::Error /* error */) |
207 | 208 |
208 // Send destroy request to the encoder. | 209 // Send destroy request to the encoder. |
209 IPC_MESSAGE_ROUTED0(AcceleratedVideoEncoderMsg_Destroy) | 210 IPC_MESSAGE_ROUTED0(AcceleratedVideoEncoderMsg_Destroy) |
210 | 211 |
211 //------------------------------------------------------------------------------ | 212 //------------------------------------------------------------------------------ |
212 // Accelerated JPEG Decoder Messages | 213 // Accelerated JPEG Decoder Messages |
(...skipping 18 matching lines...) Expand all Loading... |
231 IPC_MESSAGE_ROUTED0(AcceleratedJpegDecoderMsg_Destroy) | 232 IPC_MESSAGE_ROUTED0(AcceleratedJpegDecoderMsg_Destroy) |
232 | 233 |
233 //------------------------------------------------------------------------------ | 234 //------------------------------------------------------------------------------ |
234 // Accelerated JPEG Decoder Host Messages | 235 // Accelerated JPEG Decoder Host Messages |
235 // These messages are sent from the GPU process to Browser process. | 236 // These messages are sent from the GPU process to Browser process. |
236 // | 237 // |
237 // Report decode status. | 238 // Report decode status. |
238 IPC_MESSAGE_ROUTED2(AcceleratedJpegDecoderHostMsg_DecodeAck, | 239 IPC_MESSAGE_ROUTED2(AcceleratedJpegDecoderHostMsg_DecodeAck, |
239 int32_t, /* bitstream_buffer_id */ | 240 int32_t, /* bitstream_buffer_id */ |
240 media::JpegDecodeAccelerator::Error /* error */) | 241 media::JpegDecodeAccelerator::Error /* error */) |
OLD | NEW |