| 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 "content/common/content_export.h" | 8 #include "content/common/content_export.h" |
| 9 #include "content/common/gpu/media/create_video_encoder_params.h" | 9 #include "content/common/gpu/media/create_video_encoder_params.h" |
| 10 #include "gpu/config/gpu_info.h" | 10 #include "gpu/config/gpu_info.h" |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 int32_t /* decoder_route_id */, | 104 int32_t /* decoder_route_id */, |
| 105 bool /* succeeded */) | 105 bool /* succeeded */) |
| 106 | 106 |
| 107 // Set a CDM on the decoder to handle encrypted buffers. | 107 // Set a CDM on the decoder to handle encrypted buffers. |
| 108 IPC_MESSAGE_ROUTED1(AcceleratedVideoDecoderMsg_SetCdm, int32_t /* CDM ID */) | 108 IPC_MESSAGE_ROUTED1(AcceleratedVideoDecoderMsg_SetCdm, int32_t /* CDM ID */) |
| 109 | 109 |
| 110 // Send input buffer for decoding. | 110 // Send input buffer for decoding. |
| 111 IPC_MESSAGE_ROUTED1(AcceleratedVideoDecoderMsg_Decode, media::BitstreamBuffer) | 111 IPC_MESSAGE_ROUTED1(AcceleratedVideoDecoderMsg_Decode, media::BitstreamBuffer) |
| 112 | 112 |
| 113 // Give the texture IDs for the textures the decoder will use for output. | 113 // Give the texture IDs for the textures the decoder will use for output. |
| 114 IPC_MESSAGE_ROUTED2(AcceleratedVideoDecoderMsg_AssignPictureBuffers, | 114 IPC_MESSAGE_ROUTED2( |
| 115 std::vector<int32_t>, /* Picture buffer ID */ | 115 AcceleratedVideoDecoderMsg_AssignPictureBuffers, |
| 116 std::vector<uint32_t>) /* Texture ID */ | 116 std::vector<int32_t>, /* Picture buffer ID */ |
| 117 std::vector<media::PictureBuffer::TextureIds>) /* Texture ID */ |
| 117 | 118 |
| 118 // Send from Renderer process to the GPU process to recycle the given picture | 119 // Send from Renderer process to the GPU process to recycle the given picture |
| 119 // buffer for further decoding. | 120 // buffer for further decoding. |
| 120 IPC_MESSAGE_ROUTED1(AcceleratedVideoDecoderMsg_ReusePictureBuffer, | 121 IPC_MESSAGE_ROUTED1(AcceleratedVideoDecoderMsg_ReusePictureBuffer, |
| 121 int32_t) /* Picture buffer ID */ | 122 int32_t) /* Picture buffer ID */ |
| 122 | 123 |
| 123 // Send flush request to the decoder. | 124 // Send flush request to the decoder. |
| 124 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderMsg_Flush) | 125 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderMsg_Flush) |
| 125 | 126 |
| 126 // Send reset request to the decoder. | 127 // Send reset request to the decoder. |
| (...skipping 10 matching lines...) Expand all Loading... |
| 137 | 138 |
| 138 // Notify the CDM setting result. | 139 // Notify the CDM setting result. |
| 139 IPC_MESSAGE_ROUTED1(AcceleratedVideoDecoderHostMsg_CdmAttached, | 140 IPC_MESSAGE_ROUTED1(AcceleratedVideoDecoderHostMsg_CdmAttached, |
| 140 bool) /* success */ | 141 bool) /* success */ |
| 141 | 142 |
| 142 // Accelerated video decoder has consumed input buffer from transfer buffer. | 143 // Accelerated video decoder has consumed input buffer from transfer buffer. |
| 143 IPC_MESSAGE_ROUTED1(AcceleratedVideoDecoderHostMsg_BitstreamBufferProcessed, | 144 IPC_MESSAGE_ROUTED1(AcceleratedVideoDecoderHostMsg_BitstreamBufferProcessed, |
| 144 int32_t) /* Processed buffer ID */ | 145 int32_t) /* Processed buffer ID */ |
| 145 | 146 |
| 146 // Allocate video frames for output of the hardware video decoder. | 147 // Allocate video frames for output of the hardware video decoder. |
| 147 IPC_MESSAGE_ROUTED3(AcceleratedVideoDecoderHostMsg_ProvidePictureBuffers, | 148 IPC_MESSAGE_ROUTED4(AcceleratedVideoDecoderHostMsg_ProvidePictureBuffers, |
| 148 int32_t, /* Number of video frames to generate */ | 149 int32_t, /* Number of video frames to generate */ |
| 150 uint32_t, /* Number of textures per frame */ |
| 149 gfx::Size, /* Requested size of buffer */ | 151 gfx::Size, /* Requested size of buffer */ |
| 150 uint32_t) /* Texture target */ | 152 uint32_t) /* Texture target */ |
| 151 | 153 |
| 152 // Decoder reports that a picture is ready and buffer does not need to be passed | 154 // Decoder reports that a picture is ready and buffer does not need to be passed |
| 153 // back to the decoder. | 155 // back to the decoder. |
| 154 IPC_MESSAGE_ROUTED1(AcceleratedVideoDecoderHostMsg_DismissPictureBuffer, | 156 IPC_MESSAGE_ROUTED1(AcceleratedVideoDecoderHostMsg_DismissPictureBuffer, |
| 155 int32_t) /* Picture buffer ID */ | 157 int32_t) /* Picture buffer ID */ |
| 156 | 158 |
| 157 // Decoder reports that a picture is ready. | 159 // Decoder reports that a picture is ready. |
| 158 IPC_MESSAGE_ROUTED5(AcceleratedVideoDecoderHostMsg_PictureReady, | 160 IPC_MESSAGE_ROUTED5(AcceleratedVideoDecoderHostMsg_PictureReady, |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 259 IPC_MESSAGE_ROUTED0(AcceleratedJpegDecoderMsg_Destroy) | 261 IPC_MESSAGE_ROUTED0(AcceleratedJpegDecoderMsg_Destroy) |
| 260 | 262 |
| 261 //------------------------------------------------------------------------------ | 263 //------------------------------------------------------------------------------ |
| 262 // Accelerated JPEG Decoder Host Messages | 264 // Accelerated JPEG Decoder Host Messages |
| 263 // These messages are sent from the GPU process to Browser process. | 265 // These messages are sent from the GPU process to Browser process. |
| 264 // | 266 // |
| 265 // Report decode status. | 267 // Report decode status. |
| 266 IPC_MESSAGE_ROUTED2(AcceleratedJpegDecoderHostMsg_DecodeAck, | 268 IPC_MESSAGE_ROUTED2(AcceleratedJpegDecoderHostMsg_DecodeAck, |
| 267 int32_t, /* bitstream_buffer_id */ | 269 int32_t, /* bitstream_buffer_id */ |
| 268 media::JpegDecodeAccelerator::Error /* error */) | 270 media::JpegDecodeAccelerator::Error /* error */) |
| OLD | NEW |