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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 | 88 |
89 // Notify the deferred initialization result. | 89 // Notify the deferred initialization result. |
90 IPC_MESSAGE_ROUTED1(AcceleratedVideoDecoderHostMsg_InitializationComplete, | 90 IPC_MESSAGE_ROUTED1(AcceleratedVideoDecoderHostMsg_InitializationComplete, |
91 bool) /* success */ | 91 bool) /* success */ |
92 | 92 |
93 // Accelerated video decoder has consumed input buffer from transfer buffer. | 93 // Accelerated video decoder has consumed input buffer from transfer buffer. |
94 IPC_MESSAGE_ROUTED1(AcceleratedVideoDecoderHostMsg_BitstreamBufferProcessed, | 94 IPC_MESSAGE_ROUTED1(AcceleratedVideoDecoderHostMsg_BitstreamBufferProcessed, |
95 int32_t) /* Processed buffer ID */ | 95 int32_t) /* Processed buffer ID */ |
96 | 96 |
97 // Allocate video frames for output of the hardware video decoder. | 97 // Allocate video frames for output of the hardware video decoder. |
98 IPC_MESSAGE_ROUTED4(AcceleratedVideoDecoderHostMsg_ProvidePictureBuffers, | 98 IPC_MESSAGE_ROUTED5(AcceleratedVideoDecoderHostMsg_ProvidePictureBuffers, |
99 int32_t, /* Number of video frames to generate */ | 99 int32_t, /* Number of video frames to generate */ |
100 uint32_t, /* Number of textures per frame */ | 100 media::VideoPixelFormat, /* Picture buffer format */ |
101 gfx::Size, /* Requested size of buffer */ | 101 uint32_t, /* Number of textures per frame */ |
102 uint32_t) /* Texture target */ | 102 gfx::Size, /* Requested size of buffer */ |
| 103 uint32_t) /* Texture target */ |
103 | 104 |
104 // Decoder reports that a picture is ready and buffer does not need to be passed | 105 // Decoder reports that a picture is ready and buffer does not need to be passed |
105 // back to the decoder. | 106 // back to the decoder. |
106 IPC_MESSAGE_ROUTED1(AcceleratedVideoDecoderHostMsg_DismissPictureBuffer, | 107 IPC_MESSAGE_ROUTED1(AcceleratedVideoDecoderHostMsg_DismissPictureBuffer, |
107 int32_t) /* Picture buffer ID */ | 108 int32_t) /* Picture buffer ID */ |
108 | 109 |
109 // Decoder reports that a picture is ready. | 110 // Decoder reports that a picture is ready. |
110 IPC_MESSAGE_ROUTED5(AcceleratedVideoDecoderHostMsg_PictureReady, | 111 IPC_MESSAGE_ROUTED5(AcceleratedVideoDecoderHostMsg_PictureReady, |
111 int32_t, /* Picture buffer ID */ | 112 int32_t, /* Picture buffer ID */ |
112 int32_t, /* Bitstream buffer ID */ | 113 int32_t, /* Bitstream buffer ID */ |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
211 IPC_MESSAGE_ROUTED0(AcceleratedJpegDecoderMsg_Destroy) | 212 IPC_MESSAGE_ROUTED0(AcceleratedJpegDecoderMsg_Destroy) |
212 | 213 |
213 //------------------------------------------------------------------------------ | 214 //------------------------------------------------------------------------------ |
214 // Accelerated JPEG Decoder Host Messages | 215 // Accelerated JPEG Decoder Host Messages |
215 // These messages are sent from the GPU process to Browser process. | 216 // These messages are sent from the GPU process to Browser process. |
216 // | 217 // |
217 // Report decode status. | 218 // Report decode status. |
218 IPC_MESSAGE_ROUTED2(AcceleratedJpegDecoderHostMsg_DecodeAck, | 219 IPC_MESSAGE_ROUTED2(AcceleratedJpegDecoderHostMsg_DecodeAck, |
219 int32_t, /* bitstream_buffer_id */ | 220 int32_t, /* bitstream_buffer_id */ |
220 media::JpegDecodeAccelerator::Error /* error */) | 221 media::JpegDecodeAccelerator::Error /* error */) |
OLD | NEW |