OLD | NEW |
---|---|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
225 IPC_STRUCT_TRAITS_MEMBER(bytes_limit_when_visible) | 225 IPC_STRUCT_TRAITS_MEMBER(bytes_limit_when_visible) |
226 IPC_STRUCT_TRAITS_MEMBER(priority_cutoff_when_visible) | 226 IPC_STRUCT_TRAITS_MEMBER(priority_cutoff_when_visible) |
227 IPC_STRUCT_TRAITS_END() | 227 IPC_STRUCT_TRAITS_END() |
228 | 228 |
229 IPC_STRUCT_TRAITS_BEGIN(gfx::GLSurfaceHandle) | 229 IPC_STRUCT_TRAITS_BEGIN(gfx::GLSurfaceHandle) |
230 IPC_STRUCT_TRAITS_MEMBER(handle) | 230 IPC_STRUCT_TRAITS_MEMBER(handle) |
231 IPC_STRUCT_TRAITS_MEMBER(transport_type) | 231 IPC_STRUCT_TRAITS_MEMBER(transport_type) |
232 IPC_STRUCT_TRAITS_MEMBER(parent_client_id) | 232 IPC_STRUCT_TRAITS_MEMBER(parent_client_id) |
233 IPC_STRUCT_TRAITS_END() | 233 IPC_STRUCT_TRAITS_END() |
234 | 234 |
235 IPC_STRUCT_TRAITS_BEGIN(media::VideoEncodeAccelerator::SupportedProfile) | |
236 IPC_STRUCT_TRAITS_MEMBER(profile) | |
237 IPC_STRUCT_TRAITS_MEMBER(max_resolution) | |
238 IPC_STRUCT_TRAITS_MEMBER(max_framerate_numerator) | |
239 IPC_STRUCT_TRAITS_MEMBER(max_framerate_denominator) | |
240 IPC_STRUCT_TRAITS_END() | |
241 | |
235 //------------------------------------------------------------------------------ | 242 //------------------------------------------------------------------------------ |
236 // GPU Messages | 243 // GPU Messages |
237 // These are messages from the browser to the GPU process. | 244 // These are messages from the browser to the GPU process. |
238 | 245 |
239 // Tells the GPU process to initialize itself. The browser explicitly | 246 // Tells the GPU process to initialize itself. The browser explicitly |
240 // requests this be done so that we are guaranteed that the channel is set | 247 // requests this be done so that we are guaranteed that the channel is set |
241 // up between the browser and GPU process before doing any work that might | 248 // up between the browser and GPU process before doing any work that might |
242 // potentially crash the GPU process. Detection of the child process | 249 // potentially crash the GPU process. Detection of the child process |
243 // exiting abruptly is predicated on having the IPC channel set up. | 250 // exiting abruptly is predicated on having the IPC channel set up. |
244 IPC_MESSAGE_CONTROL0(GpuMsg_Initialize) | 251 IPC_MESSAGE_CONTROL0(GpuMsg_Initialize) |
(...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
562 // Created encoders should be freed with AcceleratedVideoEncoderMsg_Destroy when | 569 // Created encoders should be freed with AcceleratedVideoEncoderMsg_Destroy when |
563 // no longer needed. | 570 // no longer needed. |
564 IPC_SYNC_MESSAGE_ROUTED5_1(GpuCommandBufferMsg_CreateVideoEncoder, | 571 IPC_SYNC_MESSAGE_ROUTED5_1(GpuCommandBufferMsg_CreateVideoEncoder, |
565 media::VideoFrame::Format /* input_format */, | 572 media::VideoFrame::Format /* input_format */, |
566 gfx::Size /* input_visible_size */, | 573 gfx::Size /* input_visible_size */, |
567 media::VideoCodecProfile /* output_profile */, | 574 media::VideoCodecProfile /* output_profile */, |
568 uint32 /* initial_bitrate */, | 575 uint32 /* initial_bitrate */, |
569 int32, /* route_id */ | 576 int32, /* route_id */ |
570 bool /* succeeded */) | 577 bool /* succeeded */) |
571 | 578 |
579 // Get the supported codec profiles from the hardware video encoder. | |
580 IPC_SYNC_MESSAGE_ROUTED0_1( | |
581 GpuCommandBufferMsg_VideoEncodeAcceleratorGetSupportedProfiles, | |
582 std::vector<media::VideoEncodeAccelerator::SupportedProfile> /* profiles */) | |
piman
2014/09/18 18:11:51
Would it be possible to combine this with the GpuC
wuchengli
2014/09/19 14:27:24
We only need one sync message to get the supported
| |
583 | |
572 // Tells the proxy that there was an error and the command buffer had to be | 584 // Tells the proxy that there was an error and the command buffer had to be |
573 // destroyed for some reason. | 585 // destroyed for some reason. |
574 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_Destroyed, | 586 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_Destroyed, |
575 gpu::error::ContextLostReason /* reason */) | 587 gpu::error::ContextLostReason /* reason */) |
576 | 588 |
577 // Request that the GPU process reply with the given message. Reply may be | 589 // Request that the GPU process reply with the given message. Reply may be |
578 // delayed. | 590 // delayed. |
579 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_Echo, | 591 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_Echo, |
580 IPC::Message /* reply */) | 592 IPC::Message /* reply */) |
581 | 593 |
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
758 int32 /* bitstream_buffer_id */, | 770 int32 /* bitstream_buffer_id */, |
759 uint32 /* payload_size */, | 771 uint32 /* payload_size */, |
760 bool /* key_frame */) | 772 bool /* key_frame */) |
761 | 773 |
762 // Report error condition. | 774 // Report error condition. |
763 IPC_MESSAGE_ROUTED1(AcceleratedVideoEncoderHostMsg_NotifyError, | 775 IPC_MESSAGE_ROUTED1(AcceleratedVideoEncoderHostMsg_NotifyError, |
764 media::VideoEncodeAccelerator::Error /* error */) | 776 media::VideoEncodeAccelerator::Error /* error */) |
765 | 777 |
766 // Send destroy request to the encoder. | 778 // Send destroy request to the encoder. |
767 IPC_MESSAGE_ROUTED0(AcceleratedVideoEncoderMsg_Destroy) | 779 IPC_MESSAGE_ROUTED0(AcceleratedVideoEncoderMsg_Destroy) |
OLD | NEW |