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 <stdint.h> |
| 9 |
| 10 #include "base/unguessable_token.h" |
8 #include "gpu/config/gpu_info.h" | 11 #include "gpu/config/gpu_info.h" |
9 #include "gpu/ipc/common/gpu_param_traits_macros.h" | 12 #include "gpu/ipc/common/gpu_param_traits_macros.h" |
10 #include "ipc/ipc_message_macros.h" | 13 #include "ipc/ipc_message_macros.h" |
11 #include "ipc/param_traits_macros.h" | 14 #include "ipc/param_traits_macros.h" |
12 #include "media/gpu/ipc/common/media_param_traits.h" | 15 #include "media/gpu/ipc/common/media_param_traits.h" |
13 #include "media/video/jpeg_decode_accelerator.h" | 16 #include "media/video/jpeg_decode_accelerator.h" |
14 #include "media/video/video_decode_accelerator.h" | 17 #include "media/video/video_decode_accelerator.h" |
15 #include "media/video/video_encode_accelerator.h" | 18 #include "media/video/video_encode_accelerator.h" |
16 #include "ui/gfx/ipc/gfx_param_traits.h" | 19 #include "ui/gfx/ipc/gfx_param_traits.h" |
17 | 20 |
(...skipping 18 matching lines...) Expand all Loading... |
36 IPC_STRUCT_BEGIN(AcceleratedVideoEncoderMsg_Encode_Params2) | 39 IPC_STRUCT_BEGIN(AcceleratedVideoEncoderMsg_Encode_Params2) |
37 IPC_STRUCT_MEMBER(int32_t, frame_id) | 40 IPC_STRUCT_MEMBER(int32_t, frame_id) |
38 IPC_STRUCT_MEMBER(base::TimeDelta, timestamp) | 41 IPC_STRUCT_MEMBER(base::TimeDelta, timestamp) |
39 IPC_STRUCT_MEMBER(std::vector<gfx::GpuMemoryBufferHandle>, | 42 IPC_STRUCT_MEMBER(std::vector<gfx::GpuMemoryBufferHandle>, |
40 gpu_memory_buffer_handles) | 43 gpu_memory_buffer_handles) |
41 IPC_STRUCT_MEMBER(gfx::Size, size) | 44 IPC_STRUCT_MEMBER(gfx::Size, size) |
42 IPC_STRUCT_MEMBER(bool, force_keyframe) | 45 IPC_STRUCT_MEMBER(bool, force_keyframe) |
43 IPC_STRUCT_END() | 46 IPC_STRUCT_END() |
44 | 47 |
45 //------------------------------------------------------------------------------ | 48 //------------------------------------------------------------------------------ |
| 49 // Utility Messages |
| 50 |
| 51 // Sent from Renderer to GPU process to request a token identifying the channel. |
| 52 // These tokens can be used to prove ownership of the channel. The intended use |
| 53 // case is to share the command buffer with MojoMediaApplication. |
| 54 IPC_SYNC_MESSAGE_CONTROL0_1(GpuCommandBufferMsg_GetChannelToken, |
| 55 base::UnguessableToken /* channel_token */) |
| 56 |
| 57 //------------------------------------------------------------------------------ |
46 // Accelerated Video Decoder Messages | 58 // Accelerated Video Decoder Messages |
47 // These messages are sent from Renderer process to GPU process. | 59 // These messages are sent from Renderer process to GPU process. |
48 | 60 |
49 // Create and initialize a hardware video decoder using the specified route_id. | 61 // Create and initialize a hardware video decoder using the specified route_id. |
50 // Created decoders should be freed with AcceleratedVideoDecoderMsg_Destroy when | 62 // Created decoders should be freed with AcceleratedVideoDecoderMsg_Destroy when |
51 // no longer needed. | 63 // no longer needed. |
52 IPC_SYNC_MESSAGE_ROUTED2_1(GpuCommandBufferMsg_CreateVideoDecoder, | 64 IPC_SYNC_MESSAGE_ROUTED2_1(GpuCommandBufferMsg_CreateVideoDecoder, |
53 media::VideoDecodeAccelerator::Config /* config */, | 65 media::VideoDecodeAccelerator::Config /* config */, |
54 int32_t /* decoder_route_id */, | 66 int32_t /* decoder_route_id */, |
55 bool /* succeeded */) | 67 bool /* succeeded */) |
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
213 IPC_MESSAGE_ROUTED0(AcceleratedJpegDecoderMsg_Destroy) | 225 IPC_MESSAGE_ROUTED0(AcceleratedJpegDecoderMsg_Destroy) |
214 | 226 |
215 //------------------------------------------------------------------------------ | 227 //------------------------------------------------------------------------------ |
216 // Accelerated JPEG Decoder Host Messages | 228 // Accelerated JPEG Decoder Host Messages |
217 // These messages are sent from the GPU process to Browser process. | 229 // These messages are sent from the GPU process to Browser process. |
218 // | 230 // |
219 // Report decode status. | 231 // Report decode status. |
220 IPC_MESSAGE_ROUTED2(AcceleratedJpegDecoderHostMsg_DecodeAck, | 232 IPC_MESSAGE_ROUTED2(AcceleratedJpegDecoderHostMsg_DecodeAck, |
221 int32_t, /* bitstream_buffer_id */ | 233 int32_t, /* bitstream_buffer_id */ |
222 media::JpegDecodeAccelerator::Error /* error */) | 234 media::JpegDecodeAccelerator::Error /* error */) |
OLD | NEW |