Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(14)

Side by Side Diff: ppapi/native_client/src/untrusted/pnacl_irt_shim/pnacl_shim.c

Issue 210373003: Pepper VideoDecoder API definition. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rename 'picture_id' to 'decode_id'. Address comments. Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* Copyright (c) 2014 The Chromium Authors. All rights reserved. 1 /* Copyright (c) 2014 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 5
6 /* NOTE: this is auto-generated from IDL */ 6 /* NOTE: this is auto-generated from IDL */
7 #include "ppapi/native_client/src/untrusted/pnacl_irt_shim/pnacl_shim.h" 7 #include "ppapi/native_client/src/untrusted/pnacl_irt_shim/pnacl_shim.h"
8 8
9 #include "ppapi/c/ppb.h" 9 #include "ppapi/c/ppb.h"
10 #include "ppapi/c/dev/ppb_alarms_dev.h" 10 #include "ppapi/c/dev/ppb_alarms_dev.h"
(...skipping 12 matching lines...) Expand all
23 #include "ppapi/c/ppb_console.h" 23 #include "ppapi/c/ppb_console.h"
24 #include "ppapi/c/ppb_core.h" 24 #include "ppapi/c/ppb_core.h"
25 #include "ppapi/c/ppb_file_io.h" 25 #include "ppapi/c/ppb_file_io.h"
26 #include "ppapi/c/ppb_file_mapping.h" 26 #include "ppapi/c/ppb_file_mapping.h"
27 #include "ppapi/c/ppb_file_ref.h" 27 #include "ppapi/c/ppb_file_ref.h"
28 #include "ppapi/c/ppb_file_system.h" 28 #include "ppapi/c/ppb_file_system.h"
29 #include "ppapi/c/ppb_graphics_2d.h" 29 #include "ppapi/c/ppb_graphics_2d.h"
30 #include "ppapi/c/ppb_graphics_3d.h" 30 #include "ppapi/c/ppb_graphics_3d.h"
31 #include "ppapi/c/ppb_host_resolver.h" 31 #include "ppapi/c/ppb_host_resolver.h"
32 #include "ppapi/c/ppb_input_event.h" 32 #include "ppapi/c/ppb_input_event.h"
33 #include "ppapi/c/ppb_media_codec_video_decoder.h"
33 #include "ppapi/c/ppb_media_stream_audio_track.h" 34 #include "ppapi/c/ppb_media_stream_audio_track.h"
34 #include "ppapi/c/ppb_media_stream_video_track.h" 35 #include "ppapi/c/ppb_media_stream_video_track.h"
35 #include "ppapi/c/ppb_message_loop.h" 36 #include "ppapi/c/ppb_message_loop.h"
36 #include "ppapi/c/ppb_messaging.h" 37 #include "ppapi/c/ppb_messaging.h"
37 #include "ppapi/c/ppb_mouse_lock.h" 38 #include "ppapi/c/ppb_mouse_lock.h"
38 #include "ppapi/c/ppb_net_address.h" 39 #include "ppapi/c/ppb_net_address.h"
39 #include "ppapi/c/ppb_network_list.h" 40 #include "ppapi/c/ppb_network_list.h"
40 #include "ppapi/c/ppb_network_monitor.h" 41 #include "ppapi/c/ppb_network_monitor.h"
41 #include "ppapi/c/ppb_network_proxy.h" 42 #include "ppapi/c/ppb_network_proxy.h"
42 #include "ppapi/c/ppb_tcp_socket.h" 43 #include "ppapi/c/ppb_tcp_socket.h"
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Graphics2D_1_1; 108 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Graphics2D_1_1;
108 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Graphics3D_1_0; 109 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Graphics3D_1_0;
109 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_HostResolver_1_0; 110 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_HostResolver_1_0;
110 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_MouseInputEvent_1_0; 111 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_MouseInputEvent_1_0;
111 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_MouseInputEvent_1_1; 112 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_MouseInputEvent_1_1;
112 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_WheelInputEvent_1_0; 113 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_WheelInputEvent_1_0;
113 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_KeyboardInputEvent_1_0; 114 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_KeyboardInputEvent_1_0;
114 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_KeyboardInputEvent_1_2; 115 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_KeyboardInputEvent_1_2;
115 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_TouchInputEvent_1_0; 116 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_TouchInputEvent_1_0;
116 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_IMEInputEvent_1_0; 117 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_IMEInputEvent_1_0;
118 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_MediaCodecVideoDecoder_0_ 1;
117 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_MediaStreamAudioTrack_0_1 ; 119 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_MediaStreamAudioTrack_0_1 ;
118 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_MediaStreamVideoTrack_0_1 ; 120 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_MediaStreamVideoTrack_0_1 ;
119 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_MessageLoop_1_0; 121 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_MessageLoop_1_0;
120 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Messaging_1_0; 122 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Messaging_1_0;
121 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_MouseLock_1_0; 123 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_MouseLock_1_0;
122 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_NetAddress_1_0; 124 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_NetAddress_1_0;
123 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_NetworkList_1_0; 125 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_NetworkList_1_0;
124 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_NetworkMonitor_1_0; 126 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_NetworkMonitor_1_0;
125 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_NetworkProxy_1_0; 127 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_NetworkProxy_1_0;
126 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_TCPSocket_1_0; 128 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_TCPSocket_1_0;
(...skipping 856 matching lines...) Expand 10 before | Expand all | Expand 10 after
983 985
984 static void Pnacl_M13_PPB_IMEInputEvent_GetSelection(PP_Resource ime_event, uint 32_t* start, uint32_t* end) { 986 static void Pnacl_M13_PPB_IMEInputEvent_GetSelection(PP_Resource ime_event, uint 32_t* start, uint32_t* end) {
985 const struct PPB_IMEInputEvent_1_0 *iface = Pnacl_WrapperInfo_PPB_IMEInputEven t_1_0.real_iface; 987 const struct PPB_IMEInputEvent_1_0 *iface = Pnacl_WrapperInfo_PPB_IMEInputEven t_1_0.real_iface;
986 iface->GetSelection(ime_event, start, end); 988 iface->GetSelection(ime_event, start, end);
987 } 989 }
988 990
989 /* End wrapper methods for PPB_IMEInputEvent_1_0 */ 991 /* End wrapper methods for PPB_IMEInputEvent_1_0 */
990 992
991 /* Not generating wrapper methods for PPB_Instance_1_0 */ 993 /* Not generating wrapper methods for PPB_Instance_1_0 */
992 994
995 /* Begin wrapper methods for PPB_MediaCodecVideoDecoder_0_1 */
996
997 static PP_Resource Pnacl_M36_PPB_MediaCodecVideoDecoder_Create(PP_Instance insta nce) {
998 const struct PPB_MediaCodecVideoDecoder_0_1 *iface = Pnacl_WrapperInfo_PPB_Med iaCodecVideoDecoder_0_1.real_iface;
999 return iface->Create(instance);
1000 }
1001
1002 static PP_Bool Pnacl_M36_PPB_MediaCodecVideoDecoder_IsMediaCodecVideoDecoder(PP_ Resource resource) {
1003 const struct PPB_MediaCodecVideoDecoder_0_1 *iface = Pnacl_WrapperInfo_PPB_Med iaCodecVideoDecoder_0_1.real_iface;
1004 return iface->IsMediaCodecVideoDecoder(resource);
1005 }
1006
1007 static int32_t Pnacl_M36_PPB_MediaCodecVideoDecoder_Initialize(PP_Resource video _decoder, PP_Resource graphics3d_context, PP_MediaCodec_VideoProfile profile, st ruct PP_CompletionCallback* callback) {
1008 const struct PPB_MediaCodecVideoDecoder_0_1 *iface = Pnacl_WrapperInfo_PPB_Med iaCodecVideoDecoder_0_1.real_iface;
1009 return iface->Initialize(video_decoder, graphics3d_context, profile, *callback );
1010 }
1011
1012 static int32_t Pnacl_M36_PPB_MediaCodecVideoDecoder_Decode(PP_Resource video_dec oder, uint32_t decode_id, uint32_t size, const void* buffer, struct PP_Completio nCallback* callback) {
1013 const struct PPB_MediaCodecVideoDecoder_0_1 *iface = Pnacl_WrapperInfo_PPB_Med iaCodecVideoDecoder_0_1.real_iface;
1014 return iface->Decode(video_decoder, decode_id, size, buffer, *callback);
1015 }
1016
1017 static int32_t Pnacl_M36_PPB_MediaCodecVideoDecoder_GetPicture(PP_Resource video _decoder, struct PP_MediaCodec_Picture* picture, struct PP_CompletionCallback* c allback) {
1018 const struct PPB_MediaCodecVideoDecoder_0_1 *iface = Pnacl_WrapperInfo_PPB_Med iaCodecVideoDecoder_0_1.real_iface;
1019 return iface->GetPicture(video_decoder, picture, *callback);
1020 }
1021
1022 static void Pnacl_M36_PPB_MediaCodecVideoDecoder_RecyclePicture(PP_Resource vide o_decoder, const struct PP_MediaCodec_Picture* picture) {
1023 const struct PPB_MediaCodecVideoDecoder_0_1 *iface = Pnacl_WrapperInfo_PPB_Med iaCodecVideoDecoder_0_1.real_iface;
1024 iface->RecyclePicture(video_decoder, picture);
1025 }
1026
1027 static int32_t Pnacl_M36_PPB_MediaCodecVideoDecoder_Flush(PP_Resource video_deco der, struct PP_CompletionCallback* callback) {
1028 const struct PPB_MediaCodecVideoDecoder_0_1 *iface = Pnacl_WrapperInfo_PPB_Med iaCodecVideoDecoder_0_1.real_iface;
1029 return iface->Flush(video_decoder, *callback);
1030 }
1031
1032 static int32_t Pnacl_M36_PPB_MediaCodecVideoDecoder_Reset(PP_Resource video_deco der, struct PP_CompletionCallback* callback) {
1033 const struct PPB_MediaCodecVideoDecoder_0_1 *iface = Pnacl_WrapperInfo_PPB_Med iaCodecVideoDecoder_0_1.real_iface;
1034 return iface->Reset(video_decoder, *callback);
1035 }
1036
1037 /* End wrapper methods for PPB_MediaCodecVideoDecoder_0_1 */
1038
993 /* Begin wrapper methods for PPB_MediaStreamAudioTrack_0_1 */ 1039 /* Begin wrapper methods for PPB_MediaStreamAudioTrack_0_1 */
994 1040
995 static PP_Bool Pnacl_M35_PPB_MediaStreamAudioTrack_IsMediaStreamAudioTrack(PP_Re source resource) { 1041 static PP_Bool Pnacl_M35_PPB_MediaStreamAudioTrack_IsMediaStreamAudioTrack(PP_Re source resource) {
996 const struct PPB_MediaStreamAudioTrack_0_1 *iface = Pnacl_WrapperInfo_PPB_Medi aStreamAudioTrack_0_1.real_iface; 1042 const struct PPB_MediaStreamAudioTrack_0_1 *iface = Pnacl_WrapperInfo_PPB_Medi aStreamAudioTrack_0_1.real_iface;
997 return iface->IsMediaStreamAudioTrack(resource); 1043 return iface->IsMediaStreamAudioTrack(resource);
998 } 1044 }
999 1045
1000 static int32_t Pnacl_M35_PPB_MediaStreamAudioTrack_Configure(PP_Resource audio_t rack, const int32_t attrib_list[], struct PP_CompletionCallback* callback) { 1046 static int32_t Pnacl_M35_PPB_MediaStreamAudioTrack_Configure(PP_Resource audio_t rack, const int32_t attrib_list[], struct PP_CompletionCallback* callback) {
1001 const struct PPB_MediaStreamAudioTrack_0_1 *iface = Pnacl_WrapperInfo_PPB_Medi aStreamAudioTrack_0_1.real_iface; 1047 const struct PPB_MediaStreamAudioTrack_0_1 *iface = Pnacl_WrapperInfo_PPB_Medi aStreamAudioTrack_0_1.real_iface;
1002 return iface->Configure(audio_track, attrib_list, *callback); 1048 return iface->Configure(audio_track, attrib_list, *callback);
(...skipping 3517 matching lines...) Expand 10 before | Expand all | Expand 10 after
4520 .IsIMEInputEvent = (PP_Bool (*)(PP_Resource resource))&Pnacl_M13_PPB_IMEInpu tEvent_IsIMEInputEvent, 4566 .IsIMEInputEvent = (PP_Bool (*)(PP_Resource resource))&Pnacl_M13_PPB_IMEInpu tEvent_IsIMEInputEvent,
4521 .GetText = (struct PP_Var (*)(PP_Resource ime_event))&Pnacl_M13_PPB_IMEInput Event_GetText, 4567 .GetText = (struct PP_Var (*)(PP_Resource ime_event))&Pnacl_M13_PPB_IMEInput Event_GetText,
4522 .GetSegmentNumber = (uint32_t (*)(PP_Resource ime_event))&Pnacl_M13_PPB_IMEI nputEvent_GetSegmentNumber, 4568 .GetSegmentNumber = (uint32_t (*)(PP_Resource ime_event))&Pnacl_M13_PPB_IMEI nputEvent_GetSegmentNumber,
4523 .GetSegmentOffset = (uint32_t (*)(PP_Resource ime_event, uint32_t index))&Pn acl_M13_PPB_IMEInputEvent_GetSegmentOffset, 4569 .GetSegmentOffset = (uint32_t (*)(PP_Resource ime_event, uint32_t index))&Pn acl_M13_PPB_IMEInputEvent_GetSegmentOffset,
4524 .GetTargetSegment = (int32_t (*)(PP_Resource ime_event))&Pnacl_M13_PPB_IMEIn putEvent_GetTargetSegment, 4570 .GetTargetSegment = (int32_t (*)(PP_Resource ime_event))&Pnacl_M13_PPB_IMEIn putEvent_GetTargetSegment,
4525 .GetSelection = (void (*)(PP_Resource ime_event, uint32_t* start, uint32_t* end))&Pnacl_M13_PPB_IMEInputEvent_GetSelection 4571 .GetSelection = (void (*)(PP_Resource ime_event, uint32_t* start, uint32_t* end))&Pnacl_M13_PPB_IMEInputEvent_GetSelection
4526 }; 4572 };
4527 4573
4528 /* Not generating wrapper interface for PPB_Instance_1_0 */ 4574 /* Not generating wrapper interface for PPB_Instance_1_0 */
4529 4575
4576 static const struct PPB_MediaCodecVideoDecoder_0_1 Pnacl_Wrappers_PPB_MediaCodec VideoDecoder_0_1 = {
4577 .Create = (PP_Resource (*)(PP_Instance instance))&Pnacl_M36_PPB_MediaCodecVi deoDecoder_Create,
4578 .IsMediaCodecVideoDecoder = (PP_Bool (*)(PP_Resource resource))&Pnacl_M36_PP B_MediaCodecVideoDecoder_IsMediaCodecVideoDecoder,
4579 .Initialize = (int32_t (*)(PP_Resource video_decoder, PP_Resource graphics3d _context, PP_MediaCodec_VideoProfile profile, struct PP_CompletionCallback callb ack))&Pnacl_M36_PPB_MediaCodecVideoDecoder_Initialize,
4580 .Decode = (int32_t (*)(PP_Resource video_decoder, uint32_t decode_id, uint32 _t size, const void* buffer, struct PP_CompletionCallback callback))&Pnacl_M36_P PB_MediaCodecVideoDecoder_Decode,
4581 .GetPicture = (int32_t (*)(PP_Resource video_decoder, struct PP_MediaCodec_P icture* picture, struct PP_CompletionCallback callback))&Pnacl_M36_PPB_MediaCode cVideoDecoder_GetPicture,
4582 .RecyclePicture = (void (*)(PP_Resource video_decoder, const struct PP_Media Codec_Picture* picture))&Pnacl_M36_PPB_MediaCodecVideoDecoder_RecyclePicture,
4583 .Flush = (int32_t (*)(PP_Resource video_decoder, struct PP_CompletionCallbac k callback))&Pnacl_M36_PPB_MediaCodecVideoDecoder_Flush,
4584 .Reset = (int32_t (*)(PP_Resource video_decoder, struct PP_CompletionCallbac k callback))&Pnacl_M36_PPB_MediaCodecVideoDecoder_Reset
4585 };
4586
4530 static const struct PPB_MediaStreamAudioTrack_0_1 Pnacl_Wrappers_PPB_MediaStream AudioTrack_0_1 = { 4587 static const struct PPB_MediaStreamAudioTrack_0_1 Pnacl_Wrappers_PPB_MediaStream AudioTrack_0_1 = {
4531 .IsMediaStreamAudioTrack = (PP_Bool (*)(PP_Resource resource))&Pnacl_M35_PPB _MediaStreamAudioTrack_IsMediaStreamAudioTrack, 4588 .IsMediaStreamAudioTrack = (PP_Bool (*)(PP_Resource resource))&Pnacl_M35_PPB _MediaStreamAudioTrack_IsMediaStreamAudioTrack,
4532 .Configure = (int32_t (*)(PP_Resource audio_track, const int32_t attrib_list [], struct PP_CompletionCallback callback))&Pnacl_M35_PPB_MediaStreamAudioTrack_ Configure, 4589 .Configure = (int32_t (*)(PP_Resource audio_track, const int32_t attrib_list [], struct PP_CompletionCallback callback))&Pnacl_M35_PPB_MediaStreamAudioTrack_ Configure,
4533 .GetAttrib = (int32_t (*)(PP_Resource audio_track, PP_MediaStreamAudioTrack_ Attrib attrib, int32_t* value))&Pnacl_M35_PPB_MediaStreamAudioTrack_GetAttrib, 4590 .GetAttrib = (int32_t (*)(PP_Resource audio_track, PP_MediaStreamAudioTrack_ Attrib attrib, int32_t* value))&Pnacl_M35_PPB_MediaStreamAudioTrack_GetAttrib,
4534 .GetId = (struct PP_Var (*)(PP_Resource audio_track))&Pnacl_M35_PPB_MediaStr eamAudioTrack_GetId, 4591 .GetId = (struct PP_Var (*)(PP_Resource audio_track))&Pnacl_M35_PPB_MediaStr eamAudioTrack_GetId,
4535 .HasEnded = (PP_Bool (*)(PP_Resource audio_track))&Pnacl_M35_PPB_MediaStream AudioTrack_HasEnded, 4592 .HasEnded = (PP_Bool (*)(PP_Resource audio_track))&Pnacl_M35_PPB_MediaStream AudioTrack_HasEnded,
4536 .GetBuffer = (int32_t (*)(PP_Resource audio_track, PP_Resource* buffer, stru ct PP_CompletionCallback callback))&Pnacl_M35_PPB_MediaStreamAudioTrack_GetBuffe r, 4593 .GetBuffer = (int32_t (*)(PP_Resource audio_track, PP_Resource* buffer, stru ct PP_CompletionCallback callback))&Pnacl_M35_PPB_MediaStreamAudioTrack_GetBuffe r,
4537 .RecycleBuffer = (int32_t (*)(PP_Resource audio_track, PP_Resource buffer))& Pnacl_M35_PPB_MediaStreamAudioTrack_RecycleBuffer, 4594 .RecycleBuffer = (int32_t (*)(PP_Resource audio_track, PP_Resource buffer))& Pnacl_M35_PPB_MediaStreamAudioTrack_RecycleBuffer,
4538 .Close = (void (*)(PP_Resource audio_track))&Pnacl_M35_PPB_MediaStreamAudioT rack_Close 4595 .Close = (void (*)(PP_Resource audio_track))&Pnacl_M35_PPB_MediaStreamAudioT rack_Close
4539 }; 4596 };
(...skipping 1019 matching lines...) Expand 10 before | Expand all | Expand 10 after
5559 .wrapped_iface = (const void *) &Pnacl_Wrappers_PPB_TouchInputEvent_1_0, 5616 .wrapped_iface = (const void *) &Pnacl_Wrappers_PPB_TouchInputEvent_1_0,
5560 .real_iface = NULL 5617 .real_iface = NULL
5561 }; 5618 };
5562 5619
5563 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_IMEInputEvent_1_0 = { 5620 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_IMEInputEvent_1_0 = {
5564 .iface_macro = PPB_IME_INPUT_EVENT_INTERFACE_1_0, 5621 .iface_macro = PPB_IME_INPUT_EVENT_INTERFACE_1_0,
5565 .wrapped_iface = (const void *) &Pnacl_Wrappers_PPB_IMEInputEvent_1_0, 5622 .wrapped_iface = (const void *) &Pnacl_Wrappers_PPB_IMEInputEvent_1_0,
5566 .real_iface = NULL 5623 .real_iface = NULL
5567 }; 5624 };
5568 5625
5626 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_MediaCodecVideoDecoder_0_ 1 = {
5627 .iface_macro = PPB_MEDIACODECVIDEODECODER_INTERFACE_0_1,
5628 .wrapped_iface = (const void *) &Pnacl_Wrappers_PPB_MediaCodecVideoDecoder_0_1 ,
5629 .real_iface = NULL
5630 };
5631
5569 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_MediaStreamAudioTrack_0_1 = { 5632 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_MediaStreamAudioTrack_0_1 = {
5570 .iface_macro = PPB_MEDIASTREAMAUDIOTRACK_INTERFACE_0_1, 5633 .iface_macro = PPB_MEDIASTREAMAUDIOTRACK_INTERFACE_0_1,
5571 .wrapped_iface = (const void *) &Pnacl_Wrappers_PPB_MediaStreamAudioTrack_0_1, 5634 .wrapped_iface = (const void *) &Pnacl_Wrappers_PPB_MediaStreamAudioTrack_0_1,
5572 .real_iface = NULL 5635 .real_iface = NULL
5573 }; 5636 };
5574 5637
5575 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_MediaStreamVideoTrack_0_1 = { 5638 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_MediaStreamVideoTrack_0_1 = {
5576 .iface_macro = PPB_MEDIASTREAMVIDEOTRACK_INTERFACE_0_1, 5639 .iface_macro = PPB_MEDIASTREAMVIDEOTRACK_INTERFACE_0_1,
5577 .wrapped_iface = (const void *) &Pnacl_Wrappers_PPB_MediaStreamVideoTrack_0_1, 5640 .wrapped_iface = (const void *) &Pnacl_Wrappers_PPB_MediaStreamVideoTrack_0_1,
5578 .real_iface = NULL 5641 .real_iface = NULL
(...skipping 505 matching lines...) Expand 10 before | Expand all | Expand 10 after
6084 &Pnacl_WrapperInfo_PPB_Graphics2D_1_1, 6147 &Pnacl_WrapperInfo_PPB_Graphics2D_1_1,
6085 &Pnacl_WrapperInfo_PPB_Graphics3D_1_0, 6148 &Pnacl_WrapperInfo_PPB_Graphics3D_1_0,
6086 &Pnacl_WrapperInfo_PPB_HostResolver_1_0, 6149 &Pnacl_WrapperInfo_PPB_HostResolver_1_0,
6087 &Pnacl_WrapperInfo_PPB_MouseInputEvent_1_0, 6150 &Pnacl_WrapperInfo_PPB_MouseInputEvent_1_0,
6088 &Pnacl_WrapperInfo_PPB_MouseInputEvent_1_1, 6151 &Pnacl_WrapperInfo_PPB_MouseInputEvent_1_1,
6089 &Pnacl_WrapperInfo_PPB_WheelInputEvent_1_0, 6152 &Pnacl_WrapperInfo_PPB_WheelInputEvent_1_0,
6090 &Pnacl_WrapperInfo_PPB_KeyboardInputEvent_1_0, 6153 &Pnacl_WrapperInfo_PPB_KeyboardInputEvent_1_0,
6091 &Pnacl_WrapperInfo_PPB_KeyboardInputEvent_1_2, 6154 &Pnacl_WrapperInfo_PPB_KeyboardInputEvent_1_2,
6092 &Pnacl_WrapperInfo_PPB_TouchInputEvent_1_0, 6155 &Pnacl_WrapperInfo_PPB_TouchInputEvent_1_0,
6093 &Pnacl_WrapperInfo_PPB_IMEInputEvent_1_0, 6156 &Pnacl_WrapperInfo_PPB_IMEInputEvent_1_0,
6157 &Pnacl_WrapperInfo_PPB_MediaCodecVideoDecoder_0_1,
6094 &Pnacl_WrapperInfo_PPB_MediaStreamAudioTrack_0_1, 6158 &Pnacl_WrapperInfo_PPB_MediaStreamAudioTrack_0_1,
6095 &Pnacl_WrapperInfo_PPB_MediaStreamVideoTrack_0_1, 6159 &Pnacl_WrapperInfo_PPB_MediaStreamVideoTrack_0_1,
6096 &Pnacl_WrapperInfo_PPB_MessageLoop_1_0, 6160 &Pnacl_WrapperInfo_PPB_MessageLoop_1_0,
6097 &Pnacl_WrapperInfo_PPB_Messaging_1_0, 6161 &Pnacl_WrapperInfo_PPB_Messaging_1_0,
6098 &Pnacl_WrapperInfo_PPB_MouseLock_1_0, 6162 &Pnacl_WrapperInfo_PPB_MouseLock_1_0,
6099 &Pnacl_WrapperInfo_PPB_NetAddress_1_0, 6163 &Pnacl_WrapperInfo_PPB_NetAddress_1_0,
6100 &Pnacl_WrapperInfo_PPB_NetworkList_1_0, 6164 &Pnacl_WrapperInfo_PPB_NetworkList_1_0,
6101 &Pnacl_WrapperInfo_PPB_NetworkMonitor_1_0, 6165 &Pnacl_WrapperInfo_PPB_NetworkMonitor_1_0,
6102 &Pnacl_WrapperInfo_PPB_NetworkProxy_1_0, 6166 &Pnacl_WrapperInfo_PPB_NetworkProxy_1_0,
6103 &Pnacl_WrapperInfo_PPB_TCPSocket_1_0, 6167 &Pnacl_WrapperInfo_PPB_TCPSocket_1_0,
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
6243 6307
6244 /* Initialize the real_iface if it hasn't been. The wrapper depends on it. */ 6308 /* Initialize the real_iface if it hasn't been. The wrapper depends on it. */
6245 if (wrapper->real_iface == NULL) { 6309 if (wrapper->real_iface == NULL) {
6246 const void *iface = (*__real_PPPGetInterface)(name); 6310 const void *iface = (*__real_PPPGetInterface)(name);
6247 if (NULL == iface) return NULL; 6311 if (NULL == iface) return NULL;
6248 wrapper->real_iface = iface; 6312 wrapper->real_iface = iface;
6249 } 6313 }
6250 6314
6251 return wrapper->wrapped_iface; 6315 return wrapper->wrapped_iface;
6252 } 6316 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698