| Index: ppapi/proxy/ppapi_messages.h
|
| diff --git a/ppapi/proxy/ppapi_messages.h b/ppapi/proxy/ppapi_messages.h
|
| index c36ceac59be8c391cd63ee3978877df76a0f9766..c48538fdf3c45711d6a5439ab504d47860b5e5d4 100644
|
| --- a/ppapi/proxy/ppapi_messages.h
|
| +++ b/ppapi/proxy/ppapi_messages.h
|
| @@ -129,6 +129,7 @@ IPC_ENUM_TRAITS(PP_VideoDecodeError_Dev)
|
| IPC_ENUM_TRAITS(PP_VideoDecoder_Profile)
|
| IPC_ENUM_TRAITS_MAX_VALUE(PP_VideoFrame_Format, PP_VIDEOFRAME_FORMAT_LAST)
|
| IPC_ENUM_TRAITS_MAX_VALUE(PP_HardwareAcceleration, PP_HARDWAREACCELERATION_LAST)
|
| +IPC_ENUM_TRAITS_MAX_VALUE(PP_AudioProfile, PP_AUDIOPROFILE_MAX)
|
| IPC_ENUM_TRAITS_MAX_VALUE(PP_VideoProfile, PP_VIDEOPROFILE_MAX)
|
|
|
| IPC_STRUCT_TRAITS_BEGIN(PP_Point)
|
| @@ -441,6 +442,14 @@ IPC_STRUCT_TRAITS_BEGIN(ppapi::PpapiNaClPluginArgs)
|
| IPC_STRUCT_TRAITS_MEMBER(switch_values)
|
| IPC_STRUCT_TRAITS_END()
|
|
|
| +IPC_STRUCT_TRAITS_BEGIN(PP_AudioProfileDescription)
|
| + IPC_STRUCT_TRAITS_MEMBER(profile)
|
| + IPC_STRUCT_TRAITS_MEMBER(max_channels)
|
| + IPC_STRUCT_TRAITS_MEMBER(sample_size)
|
| + IPC_STRUCT_TRAITS_MEMBER(sample_rate)
|
| + IPC_STRUCT_TRAITS_MEMBER(hardware_accelerated)
|
| +IPC_STRUCT_TRAITS_END()
|
| +
|
| IPC_STRUCT_TRAITS_BEGIN(PP_VideoProfileDescription)
|
| IPC_STRUCT_TRAITS_MEMBER(profile)
|
| IPC_STRUCT_TRAITS_MEMBER(max_resolution)
|
| @@ -449,6 +458,15 @@ IPC_STRUCT_TRAITS_MEMBER(max_framerate_denominator)
|
| IPC_STRUCT_TRAITS_MEMBER(hardware_accelerated)
|
| IPC_STRUCT_TRAITS_END()
|
|
|
| +IPC_STRUCT_TRAITS_BEGIN(ppapi::proxy::PPB_AudioEncodeParameters)
|
| + IPC_STRUCT_TRAITS_MEMBER(channels)
|
| + IPC_STRUCT_TRAITS_MEMBER(input_sample_rate)
|
| + IPC_STRUCT_TRAITS_MEMBER(input_sample_size)
|
| + IPC_STRUCT_TRAITS_MEMBER(output_profile)
|
| + IPC_STRUCT_TRAITS_MEMBER(initial_bitrate)
|
| + IPC_STRUCT_TRAITS_MEMBER(acceleration)
|
| +IPC_STRUCT_TRAITS_END()
|
| +
|
| #if !defined(OS_NACL) && !defined(NACL_WIN64)
|
|
|
| IPC_STRUCT_TRAITS_BEGIN(ppapi::proxy::PPPDecryptor_Buffer)
|
| @@ -889,6 +907,32 @@ IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBAudio_StartOrStop,
|
| ppapi::HostResource /* audio_id */,
|
| bool /* play */)
|
|
|
| +// PPB_AudioEncoder
|
| +IPC_MESSAGE_CONTROL0(PpapiHostMsg_AudioEncoder_Create)
|
| +IPC_MESSAGE_CONTROL0(PpapiHostMsg_AudioEncoder_GetSupportedProfiles)
|
| +IPC_MESSAGE_CONTROL1(PpapiPluginMsg_AudioEncoder_GetSupportedProfilesReply,
|
| + std::vector<PP_AudioProfileDescription> /* results */)
|
| +IPC_MESSAGE_CONTROL1(PpapiHostMsg_AudioEncoder_Initialize,
|
| + ppapi::proxy::PPB_AudioEncodeParameters /* parameters */)
|
| +IPC_MESSAGE_CONTROL5(PpapiPluginMsg_AudioEncoder_InitializeReply,
|
| + int32_t /* number_of_samples */,
|
| + int32_t /* audio_buffer_count */,
|
| + int32_t /* audio_buffer_size */,
|
| + int32_t /* bitstream_buffer_count */,
|
| + int32_t /* bitstream_buffer_size */)
|
| +IPC_MESSAGE_CONTROL1(PpapiHostMsg_AudioEncoder_Encode, int32_t /* buffer_id */)
|
| +IPC_MESSAGE_CONTROL1(PpapiPluginMsg_AudioEncoder_EncodeReply,
|
| + int32_t /* buffer_id */)
|
| +IPC_MESSAGE_CONTROL1(PpapiPluginMsg_AudioEncoder_BitstreamBufferReady,
|
| + int32_t /* buffer_id */)
|
| +IPC_MESSAGE_CONTROL1(PpapiHostMsg_AudioEncoder_RecycleBitstreamBuffer,
|
| + int32_t /* buffer_id */)
|
| +IPC_MESSAGE_CONTROL1(PpapiHostMsg_AudioEncoder_RequestBitrateChange,
|
| + uint32_t /* bitrate */)
|
| +IPC_MESSAGE_CONTROL1(PpapiPluginMsg_AudioEncoder_NotifyError,
|
| + int32_t /* error */)
|
| +IPC_MESSAGE_CONTROL0(PpapiHostMsg_AudioEncoder_Close)
|
| +
|
| // PPB_Core.
|
| IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBCore_AddRefResource,
|
| ppapi::HostResource)
|
|
|