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

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: Plugin should call RecyclePicture during Flush. 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 context, PP_MediaCodec_VideoProfile profile, struct PP_Com pletionCallback* callback) {
1008 const struct PPB_MediaCodecVideoDecoder_0_1 *iface = Pnacl_WrapperInfo_PPB_Med iaCodecVideoDecoder_0_1.real_iface;
1009 return iface->Initialize(video_decoder, context, profile, *callback);
1010 }
1011
1012 static int32_t Pnacl_M36_PPB_MediaCodecVideoDecoder_Decode(PP_Resource video_dec oder, uint32_t user_id, uint32_t size, const void* buffer, struct PP_CompletionC allback* callback) {
1013 const struct PPB_MediaCodecVideoDecoder_0_1 *iface = Pnacl_WrapperInfo_PPB_Med iaCodecVideoDecoder_0_1.real_iface;
1014 return iface->Decode(video_decoder, user_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 3507 matching lines...) Expand 10 before | Expand all | Expand 10 after
4510 .IsIMEInputEvent = (PP_Bool (*)(PP_Resource resource))&Pnacl_M13_PPB_IMEInpu tEvent_IsIMEInputEvent, 4556 .IsIMEInputEvent = (PP_Bool (*)(PP_Resource resource))&Pnacl_M13_PPB_IMEInpu tEvent_IsIMEInputEvent,
4511 .GetText = (struct PP_Var (*)(PP_Resource ime_event))&Pnacl_M13_PPB_IMEInput Event_GetText, 4557 .GetText = (struct PP_Var (*)(PP_Resource ime_event))&Pnacl_M13_PPB_IMEInput Event_GetText,
4512 .GetSegmentNumber = (uint32_t (*)(PP_Resource ime_event))&Pnacl_M13_PPB_IMEI nputEvent_GetSegmentNumber, 4558 .GetSegmentNumber = (uint32_t (*)(PP_Resource ime_event))&Pnacl_M13_PPB_IMEI nputEvent_GetSegmentNumber,
4513 .GetSegmentOffset = (uint32_t (*)(PP_Resource ime_event, uint32_t index))&Pn acl_M13_PPB_IMEInputEvent_GetSegmentOffset, 4559 .GetSegmentOffset = (uint32_t (*)(PP_Resource ime_event, uint32_t index))&Pn acl_M13_PPB_IMEInputEvent_GetSegmentOffset,
4514 .GetTargetSegment = (int32_t (*)(PP_Resource ime_event))&Pnacl_M13_PPB_IMEIn putEvent_GetTargetSegment, 4560 .GetTargetSegment = (int32_t (*)(PP_Resource ime_event))&Pnacl_M13_PPB_IMEIn putEvent_GetTargetSegment,
4515 .GetSelection = (void (*)(PP_Resource ime_event, uint32_t* start, uint32_t* end))&Pnacl_M13_PPB_IMEInputEvent_GetSelection 4561 .GetSelection = (void (*)(PP_Resource ime_event, uint32_t* start, uint32_t* end))&Pnacl_M13_PPB_IMEInputEvent_GetSelection
4516 }; 4562 };
4517 4563
4518 /* Not generating wrapper interface for PPB_Instance_1_0 */ 4564 /* Not generating wrapper interface for PPB_Instance_1_0 */
4519 4565
4566 static const struct PPB_MediaCodecVideoDecoder_0_1 Pnacl_Wrappers_PPB_MediaCodec VideoDecoder_0_1 = {
4567 .Create = (PP_Resource (*)(PP_Instance instance))&Pnacl_M36_PPB_MediaCodecVi deoDecoder_Create,
4568 .IsMediaCodecVideoDecoder = (PP_Bool (*)(PP_Resource resource))&Pnacl_M36_PP B_MediaCodecVideoDecoder_IsMediaCodecVideoDecoder,
4569 .Initialize = (int32_t (*)(PP_Resource video_decoder, PP_Resource context, P P_MediaCodec_VideoProfile profile, struct PP_CompletionCallback callback))&Pnacl _M36_PPB_MediaCodecVideoDecoder_Initialize,
4570 .Decode = (int32_t (*)(PP_Resource video_decoder, uint32_t user_id, uint32_t size, const void* buffer, struct PP_CompletionCallback callback))&Pnacl_M36_PPB _MediaCodecVideoDecoder_Decode,
4571 .GetPicture = (int32_t (*)(PP_Resource video_decoder, struct PP_MediaCodec_P icture* picture, struct PP_CompletionCallback callback))&Pnacl_M36_PPB_MediaCode cVideoDecoder_GetPicture,
4572 .RecyclePicture = (void (*)(PP_Resource video_decoder, const struct PP_Media Codec_Picture* picture))&Pnacl_M36_PPB_MediaCodecVideoDecoder_RecyclePicture,
4573 .Flush = (int32_t (*)(PP_Resource video_decoder, struct PP_CompletionCallbac k callback))&Pnacl_M36_PPB_MediaCodecVideoDecoder_Flush,
4574 .Reset = (int32_t (*)(PP_Resource video_decoder, struct PP_CompletionCallbac k callback))&Pnacl_M36_PPB_MediaCodecVideoDecoder_Reset
4575 };
4576
4520 static const struct PPB_MediaStreamAudioTrack_0_1 Pnacl_Wrappers_PPB_MediaStream AudioTrack_0_1 = { 4577 static const struct PPB_MediaStreamAudioTrack_0_1 Pnacl_Wrappers_PPB_MediaStream AudioTrack_0_1 = {
4521 .IsMediaStreamAudioTrack = (PP_Bool (*)(PP_Resource resource))&Pnacl_M35_PPB _MediaStreamAudioTrack_IsMediaStreamAudioTrack, 4578 .IsMediaStreamAudioTrack = (PP_Bool (*)(PP_Resource resource))&Pnacl_M35_PPB _MediaStreamAudioTrack_IsMediaStreamAudioTrack,
4522 .Configure = (int32_t (*)(PP_Resource audio_track, const int32_t attrib_list [], struct PP_CompletionCallback callback))&Pnacl_M35_PPB_MediaStreamAudioTrack_ Configure, 4579 .Configure = (int32_t (*)(PP_Resource audio_track, const int32_t attrib_list [], struct PP_CompletionCallback callback))&Pnacl_M35_PPB_MediaStreamAudioTrack_ Configure,
4523 .GetAttrib = (int32_t (*)(PP_Resource audio_track, PP_MediaStreamAudioTrack_ Attrib attrib, int32_t* value))&Pnacl_M35_PPB_MediaStreamAudioTrack_GetAttrib, 4580 .GetAttrib = (int32_t (*)(PP_Resource audio_track, PP_MediaStreamAudioTrack_ Attrib attrib, int32_t* value))&Pnacl_M35_PPB_MediaStreamAudioTrack_GetAttrib,
4524 .GetId = (struct PP_Var (*)(PP_Resource audio_track))&Pnacl_M35_PPB_MediaStr eamAudioTrack_GetId, 4581 .GetId = (struct PP_Var (*)(PP_Resource audio_track))&Pnacl_M35_PPB_MediaStr eamAudioTrack_GetId,
4525 .HasEnded = (PP_Bool (*)(PP_Resource audio_track))&Pnacl_M35_PPB_MediaStream AudioTrack_HasEnded, 4582 .HasEnded = (PP_Bool (*)(PP_Resource audio_track))&Pnacl_M35_PPB_MediaStream AudioTrack_HasEnded,
4526 .GetBuffer = (int32_t (*)(PP_Resource audio_track, PP_Resource* buffer, stru ct PP_CompletionCallback callback))&Pnacl_M35_PPB_MediaStreamAudioTrack_GetBuffe r, 4583 .GetBuffer = (int32_t (*)(PP_Resource audio_track, PP_Resource* buffer, stru ct PP_CompletionCallback callback))&Pnacl_M35_PPB_MediaStreamAudioTrack_GetBuffe r,
4527 .RecycleBuffer = (int32_t (*)(PP_Resource audio_track, PP_Resource buffer))& Pnacl_M35_PPB_MediaStreamAudioTrack_RecycleBuffer, 4584 .RecycleBuffer = (int32_t (*)(PP_Resource audio_track, PP_Resource buffer))& Pnacl_M35_PPB_MediaStreamAudioTrack_RecycleBuffer,
4528 .Close = (void (*)(PP_Resource audio_track))&Pnacl_M35_PPB_MediaStreamAudioT rack_Close 4585 .Close = (void (*)(PP_Resource audio_track))&Pnacl_M35_PPB_MediaStreamAudioT rack_Close
4529 }; 4586 };
(...skipping 1017 matching lines...) Expand 10 before | Expand all | Expand 10 after
5547 .wrapped_iface = (const void *) &Pnacl_Wrappers_PPB_TouchInputEvent_1_0, 5604 .wrapped_iface = (const void *) &Pnacl_Wrappers_PPB_TouchInputEvent_1_0,
5548 .real_iface = NULL 5605 .real_iface = NULL
5549 }; 5606 };
5550 5607
5551 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_IMEInputEvent_1_0 = { 5608 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_IMEInputEvent_1_0 = {
5552 .iface_macro = PPB_IME_INPUT_EVENT_INTERFACE_1_0, 5609 .iface_macro = PPB_IME_INPUT_EVENT_INTERFACE_1_0,
5553 .wrapped_iface = (const void *) &Pnacl_Wrappers_PPB_IMEInputEvent_1_0, 5610 .wrapped_iface = (const void *) &Pnacl_Wrappers_PPB_IMEInputEvent_1_0,
5554 .real_iface = NULL 5611 .real_iface = NULL
5555 }; 5612 };
5556 5613
5614 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_MediaCodecVideoDecoder_0_ 1 = {
5615 .iface_macro = PPB_MEDIACODECVIDEODECODER_INTERFACE_0_1,
5616 .wrapped_iface = (const void *) &Pnacl_Wrappers_PPB_MediaCodecVideoDecoder_0_1 ,
5617 .real_iface = NULL
5618 };
5619
5557 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_MediaStreamAudioTrack_0_1 = { 5620 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_MediaStreamAudioTrack_0_1 = {
5558 .iface_macro = PPB_MEDIASTREAMAUDIOTRACK_INTERFACE_0_1, 5621 .iface_macro = PPB_MEDIASTREAMAUDIOTRACK_INTERFACE_0_1,
5559 .wrapped_iface = (const void *) &Pnacl_Wrappers_PPB_MediaStreamAudioTrack_0_1, 5622 .wrapped_iface = (const void *) &Pnacl_Wrappers_PPB_MediaStreamAudioTrack_0_1,
5560 .real_iface = NULL 5623 .real_iface = NULL
5561 }; 5624 };
5562 5625
5563 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_MediaStreamVideoTrack_0_1 = { 5626 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_MediaStreamVideoTrack_0_1 = {
5564 .iface_macro = PPB_MEDIASTREAMVIDEOTRACK_INTERFACE_0_1, 5627 .iface_macro = PPB_MEDIASTREAMVIDEOTRACK_INTERFACE_0_1,
5565 .wrapped_iface = (const void *) &Pnacl_Wrappers_PPB_MediaStreamVideoTrack_0_1, 5628 .wrapped_iface = (const void *) &Pnacl_Wrappers_PPB_MediaStreamVideoTrack_0_1,
5566 .real_iface = NULL 5629 .real_iface = NULL
(...skipping 505 matching lines...) Expand 10 before | Expand all | Expand 10 after
6072 &Pnacl_WrapperInfo_PPB_Graphics2D_1_1, 6135 &Pnacl_WrapperInfo_PPB_Graphics2D_1_1,
6073 &Pnacl_WrapperInfo_PPB_Graphics3D_1_0, 6136 &Pnacl_WrapperInfo_PPB_Graphics3D_1_0,
6074 &Pnacl_WrapperInfo_PPB_HostResolver_1_0, 6137 &Pnacl_WrapperInfo_PPB_HostResolver_1_0,
6075 &Pnacl_WrapperInfo_PPB_MouseInputEvent_1_0, 6138 &Pnacl_WrapperInfo_PPB_MouseInputEvent_1_0,
6076 &Pnacl_WrapperInfo_PPB_MouseInputEvent_1_1, 6139 &Pnacl_WrapperInfo_PPB_MouseInputEvent_1_1,
6077 &Pnacl_WrapperInfo_PPB_WheelInputEvent_1_0, 6140 &Pnacl_WrapperInfo_PPB_WheelInputEvent_1_0,
6078 &Pnacl_WrapperInfo_PPB_KeyboardInputEvent_1_0, 6141 &Pnacl_WrapperInfo_PPB_KeyboardInputEvent_1_0,
6079 &Pnacl_WrapperInfo_PPB_KeyboardInputEvent_1_2, 6142 &Pnacl_WrapperInfo_PPB_KeyboardInputEvent_1_2,
6080 &Pnacl_WrapperInfo_PPB_TouchInputEvent_1_0, 6143 &Pnacl_WrapperInfo_PPB_TouchInputEvent_1_0,
6081 &Pnacl_WrapperInfo_PPB_IMEInputEvent_1_0, 6144 &Pnacl_WrapperInfo_PPB_IMEInputEvent_1_0,
6145 &Pnacl_WrapperInfo_PPB_MediaCodecVideoDecoder_0_1,
6082 &Pnacl_WrapperInfo_PPB_MediaStreamAudioTrack_0_1, 6146 &Pnacl_WrapperInfo_PPB_MediaStreamAudioTrack_0_1,
6083 &Pnacl_WrapperInfo_PPB_MediaStreamVideoTrack_0_1, 6147 &Pnacl_WrapperInfo_PPB_MediaStreamVideoTrack_0_1,
6084 &Pnacl_WrapperInfo_PPB_MessageLoop_1_0, 6148 &Pnacl_WrapperInfo_PPB_MessageLoop_1_0,
6085 &Pnacl_WrapperInfo_PPB_Messaging_1_0, 6149 &Pnacl_WrapperInfo_PPB_Messaging_1_0,
6086 &Pnacl_WrapperInfo_PPB_MouseLock_1_0, 6150 &Pnacl_WrapperInfo_PPB_MouseLock_1_0,
6087 &Pnacl_WrapperInfo_PPB_NetAddress_1_0, 6151 &Pnacl_WrapperInfo_PPB_NetAddress_1_0,
6088 &Pnacl_WrapperInfo_PPB_NetworkList_1_0, 6152 &Pnacl_WrapperInfo_PPB_NetworkList_1_0,
6089 &Pnacl_WrapperInfo_PPB_NetworkMonitor_1_0, 6153 &Pnacl_WrapperInfo_PPB_NetworkMonitor_1_0,
6090 &Pnacl_WrapperInfo_PPB_NetworkProxy_1_0, 6154 &Pnacl_WrapperInfo_PPB_NetworkProxy_1_0,
6091 &Pnacl_WrapperInfo_PPB_TCPSocket_1_0, 6155 &Pnacl_WrapperInfo_PPB_TCPSocket_1_0,
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
6231 6295
6232 /* Initialize the real_iface if it hasn't been. The wrapper depends on it. */ 6296 /* Initialize the real_iface if it hasn't been. The wrapper depends on it. */
6233 if (wrapper->real_iface == NULL) { 6297 if (wrapper->real_iface == NULL) {
6234 const void *iface = (*__real_PPPGetInterface)(name); 6298 const void *iface = (*__real_PPPGetInterface)(name);
6235 if (NULL == iface) return NULL; 6299 if (NULL == iface) return NULL;
6236 wrapper->real_iface = iface; 6300 wrapper->real_iface = iface;
6237 } 6301 }
6238 6302
6239 return wrapper->wrapped_iface; 6303 return wrapper->wrapped_iface;
6240 } 6304 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698