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> | |
tguilbert
2016/09/19 22:32:22
No longer needed.
sandersd (OOO until July 31)
2016/09/19 22:40:33
It was needed before, just missing.
| |
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 // TODO(sandersd): Switch to base::NonceToken once that exists. | |
tguilbert
2016/09/19 22:32:22
Remove the TODO.
sandersd (OOO until July 31)
2016/09/19 22:40:33
Done.
| |
55 IPC_SYNC_MESSAGE_CONTROL0_1(GpuCommandBufferMsg_GetChannelToken, | |
56 base::UnguessableToken /* channel_token */) | |
57 | |
58 //------------------------------------------------------------------------------ | |
46 // Accelerated Video Decoder Messages | 59 // Accelerated Video Decoder Messages |
47 // These messages are sent from Renderer process to GPU process. | 60 // These messages are sent from Renderer process to GPU process. |
48 | 61 |
49 // Create and initialize a hardware video decoder using the specified route_id. | 62 // Create and initialize a hardware video decoder using the specified route_id. |
50 // Created decoders should be freed with AcceleratedVideoDecoderMsg_Destroy when | 63 // Created decoders should be freed with AcceleratedVideoDecoderMsg_Destroy when |
51 // no longer needed. | 64 // no longer needed. |
52 IPC_SYNC_MESSAGE_ROUTED2_1(GpuCommandBufferMsg_CreateVideoDecoder, | 65 IPC_SYNC_MESSAGE_ROUTED2_1(GpuCommandBufferMsg_CreateVideoDecoder, |
53 media::VideoDecodeAccelerator::Config /* config */, | 66 media::VideoDecodeAccelerator::Config /* config */, |
54 int32_t /* decoder_route_id */, | 67 int32_t /* decoder_route_id */, |
55 bool /* succeeded */) | 68 bool /* succeeded */) |
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
213 IPC_MESSAGE_ROUTED0(AcceleratedJpegDecoderMsg_Destroy) | 226 IPC_MESSAGE_ROUTED0(AcceleratedJpegDecoderMsg_Destroy) |
214 | 227 |
215 //------------------------------------------------------------------------------ | 228 //------------------------------------------------------------------------------ |
216 // Accelerated JPEG Decoder Host Messages | 229 // Accelerated JPEG Decoder Host Messages |
217 // These messages are sent from the GPU process to Browser process. | 230 // These messages are sent from the GPU process to Browser process. |
218 // | 231 // |
219 // Report decode status. | 232 // Report decode status. |
220 IPC_MESSAGE_ROUTED2(AcceleratedJpegDecoderHostMsg_DecodeAck, | 233 IPC_MESSAGE_ROUTED2(AcceleratedJpegDecoderHostMsg_DecodeAck, |
221 int32_t, /* bitstream_buffer_id */ | 234 int32_t, /* bitstream_buffer_id */ |
222 media::JpegDecodeAccelerator::Error /* error */) | 235 media::JpegDecodeAccelerator::Error /* error */) |
OLD | NEW |