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