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

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

Issue 842293003: Pepper: Define PPB_VideoEncoder API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: C++ Wrapper Class Created 5 years, 11 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
OLDNEW
1 /* Copyright (c) 2015 The Chromium Authors. All rights reserved. 1 /* Copyright (c) 2015 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_audio_input_dev.h" 10 #include "ppapi/c/dev/ppb_audio_input_dev.h"
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 #include "ppapi/c/ppb_text_input_controller.h" 43 #include "ppapi/c/ppb_text_input_controller.h"
44 #include "ppapi/c/ppb_udp_socket.h" 44 #include "ppapi/c/ppb_udp_socket.h"
45 #include "ppapi/c/ppb_url_loader.h" 45 #include "ppapi/c/ppb_url_loader.h"
46 #include "ppapi/c/ppb_url_request_info.h" 46 #include "ppapi/c/ppb_url_request_info.h"
47 #include "ppapi/c/ppb_url_response_info.h" 47 #include "ppapi/c/ppb_url_response_info.h"
48 #include "ppapi/c/ppb_var.h" 48 #include "ppapi/c/ppb_var.h"
49 #include "ppapi/c/ppb_var_array.h" 49 #include "ppapi/c/ppb_var_array.h"
50 #include "ppapi/c/ppb_var_array_buffer.h" 50 #include "ppapi/c/ppb_var_array_buffer.h"
51 #include "ppapi/c/ppb_var_dictionary.h" 51 #include "ppapi/c/ppb_var_dictionary.h"
52 #include "ppapi/c/ppb_video_decoder.h" 52 #include "ppapi/c/ppb_video_decoder.h"
53 #include "ppapi/c/ppb_video_encoder.h"
53 #include "ppapi/c/ppb_websocket.h" 54 #include "ppapi/c/ppb_websocket.h"
54 #include "ppapi/c/ppp_messaging.h" 55 #include "ppapi/c/ppp_messaging.h"
55 #include "ppapi/c/private/ppb_content_decryptor_private.h" 56 #include "ppapi/c/private/ppb_content_decryptor_private.h"
56 #include "ppapi/c/private/ppb_display_color_profile_private.h" 57 #include "ppapi/c/private/ppb_display_color_profile_private.h"
57 #include "ppapi/c/private/ppb_ext_crx_file_system_private.h" 58 #include "ppapi/c/private/ppb_ext_crx_file_system_private.h"
58 #include "ppapi/c/private/ppb_file_io_private.h" 59 #include "ppapi/c/private/ppb_file_io_private.h"
59 #include "ppapi/c/private/ppb_file_ref_private.h" 60 #include "ppapi/c/private/ppb_file_ref_private.h"
60 #include "ppapi/c/private/ppb_flash.h" 61 #include "ppapi/c/private/ppb_flash.h"
61 #include "ppapi/c/private/ppb_flash_clipboard.h" 62 #include "ppapi/c/private/ppb_flash_clipboard.h"
62 #include "ppapi/c/private/ppb_flash_device_id.h" 63 #include "ppapi/c/private/ppb_flash_device_id.h"
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_URLResponseInfo_1_0; 142 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_URLResponseInfo_1_0;
142 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Var_1_0; 143 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Var_1_0;
143 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Var_1_1; 144 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Var_1_1;
144 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Var_1_2; 145 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Var_1_2;
145 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VarArray_1_0; 146 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VarArray_1_0;
146 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VarArrayBuffer_1_0; 147 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VarArrayBuffer_1_0;
147 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VarDictionary_1_0; 148 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VarDictionary_1_0;
148 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VideoDecoder_0_1; 149 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VideoDecoder_0_1;
149 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VideoDecoder_0_2; 150 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VideoDecoder_0_2;
150 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VideoDecoder_1_0; 151 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VideoDecoder_1_0;
152 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VideoEncoder_0_1;
151 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_WebSocket_1_0; 153 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_WebSocket_1_0;
152 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPP_Messaging_1_0; 154 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPP_Messaging_1_0;
153 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_AudioInput_Dev_0_3; 155 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_AudioInput_Dev_0_3;
154 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_AudioInput_Dev_0_4; 156 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_AudioInput_Dev_0_4;
155 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_DeviceRef_Dev_0_1; 157 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_DeviceRef_Dev_0_1;
156 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileChooser_Dev_0_5; 158 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileChooser_Dev_0_5;
157 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileChooser_Dev_0_6; 159 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileChooser_Dev_0_6;
158 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Font_Dev_0_6; 160 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Font_Dev_0_6;
159 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_IMEInputEvent_Dev_0_1; 161 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_IMEInputEvent_Dev_0_1;
160 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_IMEInputEvent_Dev_0_2; 162 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_IMEInputEvent_Dev_0_2;
(...skipping 2018 matching lines...) Expand 10 before | Expand all | Expand 10 after
2179 return iface->Flush(video_decoder, *callback); 2181 return iface->Flush(video_decoder, *callback);
2180 } 2182 }
2181 2183
2182 static int32_t Pnacl_M40_PPB_VideoDecoder_Reset(PP_Resource video_decoder, struc t PP_CompletionCallback* callback) { 2184 static int32_t Pnacl_M40_PPB_VideoDecoder_Reset(PP_Resource video_decoder, struc t PP_CompletionCallback* callback) {
2183 const struct PPB_VideoDecoder_1_0 *iface = Pnacl_WrapperInfo_PPB_VideoDecoder_ 1_0.real_iface; 2185 const struct PPB_VideoDecoder_1_0 *iface = Pnacl_WrapperInfo_PPB_VideoDecoder_ 1_0.real_iface;
2184 return iface->Reset(video_decoder, *callback); 2186 return iface->Reset(video_decoder, *callback);
2185 } 2187 }
2186 2188
2187 /* End wrapper methods for PPB_VideoDecoder_1_0 */ 2189 /* End wrapper methods for PPB_VideoDecoder_1_0 */
2188 2190
2191 /* Begin wrapper methods for PPB_VideoEncoder_0_1 */
2192
2193 static PP_Resource Pnacl_M42_PPB_VideoEncoder_Create(PP_Instance instance) {
2194 const struct PPB_VideoEncoder_0_1 *iface = Pnacl_WrapperInfo_PPB_VideoEncoder_ 0_1.real_iface;
2195 return iface->Create(instance);
2196 }
2197
2198 static PP_Bool Pnacl_M42_PPB_VideoEncoder_IsVideoEncoder(PP_Resource resource) {
2199 const struct PPB_VideoEncoder_0_1 *iface = Pnacl_WrapperInfo_PPB_VideoEncoder_ 0_1.real_iface;
2200 return iface->IsVideoEncoder(resource);
2201 }
2202
2203 static int32_t Pnacl_M42_PPB_VideoEncoder_GetSupportedProfiles(PP_Resource video _encoder, struct PP_ArrayOutput* output, struct PP_CompletionCallback* callback) {
2204 const struct PPB_VideoEncoder_0_1 *iface = Pnacl_WrapperInfo_PPB_VideoEncoder_ 0_1.real_iface;
2205 return iface->GetSupportedProfiles(video_encoder, *output, *callback);
2206 }
2207
2208 static int32_t Pnacl_M42_PPB_VideoEncoder_Initialize(PP_Resource video_decoder, PP_VideoFrame_Format input_format, const struct PP_Size* input_visible_size, PP_ VideoProfile output_profile, uint32_t initial_bitrate, PP_HardwareAcceleration a cceleration, struct PP_CompletionCallback* callback) {
2209 const struct PPB_VideoEncoder_0_1 *iface = Pnacl_WrapperInfo_PPB_VideoEncoder_ 0_1.real_iface;
2210 return iface->Initialize(video_decoder, input_format, input_visible_size, outp ut_profile, initial_bitrate, acceleration, *callback);
2211 }
2212
2213 static int32_t Pnacl_M42_PPB_VideoEncoder_GetVideoFrame(PP_Resource video_encode r, PP_Resource* video_frame, struct PP_CompletionCallback* callback) {
2214 const struct PPB_VideoEncoder_0_1 *iface = Pnacl_WrapperInfo_PPB_VideoEncoder_ 0_1.real_iface;
2215 return iface->GetVideoFrame(video_encoder, video_frame, *callback);
2216 }
2217
2218 static int32_t Pnacl_M42_PPB_VideoEncoder_Encode(PP_Resource video_encoder, PP_R esource video_frame, PP_Bool force_keyframe, struct PP_CompletionCallback* callb ack) {
2219 const struct PPB_VideoEncoder_0_1 *iface = Pnacl_WrapperInfo_PPB_VideoEncoder_ 0_1.real_iface;
2220 return iface->Encode(video_encoder, video_frame, force_keyframe, *callback);
2221 }
2222
2223 static int32_t Pnacl_M42_PPB_VideoEncoder_GetBitstreamBuffer(PP_Resource video_e ncoder, struct PP_BitstreamBuffer* bitstream_buffer, struct PP_CompletionCallbac k* callback) {
2224 const struct PPB_VideoEncoder_0_1 *iface = Pnacl_WrapperInfo_PPB_VideoEncoder_ 0_1.real_iface;
2225 return iface->GetBitstreamBuffer(video_encoder, bitstream_buffer, *callback);
2226 }
2227
2228 static void Pnacl_M42_PPB_VideoEncoder_RecycleBitstreamBuffer(PP_Resource video_ decoder, const struct PP_BitstreamBuffer* bitstream_buffer) {
2229 const struct PPB_VideoEncoder_0_1 *iface = Pnacl_WrapperInfo_PPB_VideoEncoder_ 0_1.real_iface;
2230 iface->RecycleBitstreamBuffer(video_decoder, bitstream_buffer);
2231 }
2232
2233 static void Pnacl_M42_PPB_VideoEncoder_RequestEncodingParametersChange(PP_Resour ce video_decoder, uint32_t bitrate, uint32_t framerate) {
2234 const struct PPB_VideoEncoder_0_1 *iface = Pnacl_WrapperInfo_PPB_VideoEncoder_ 0_1.real_iface;
2235 iface->RequestEncodingParametersChange(video_decoder, bitrate, framerate);
2236 }
2237
2238 /* End wrapper methods for PPB_VideoEncoder_0_1 */
2239
2189 /* Not generating wrapper methods for PPB_VideoFrame_0_1 */ 2240 /* Not generating wrapper methods for PPB_VideoFrame_0_1 */
2190 2241
2191 /* Not generating wrapper methods for PPB_View_1_0 */ 2242 /* Not generating wrapper methods for PPB_View_1_0 */
2192 2243
2193 /* Not generating wrapper methods for PPB_View_1_1 */ 2244 /* Not generating wrapper methods for PPB_View_1_1 */
2194 2245
2195 /* Not generating wrapper methods for PPB_View_1_2 */ 2246 /* Not generating wrapper methods for PPB_View_1_2 */
2196 2247
2197 /* Begin wrapper methods for PPB_WebSocket_1_0 */ 2248 /* Begin wrapper methods for PPB_WebSocket_1_0 */
2198 2249
(...skipping 2989 matching lines...) Expand 10 before | Expand all | Expand 10 after
5188 .Create = (PP_Resource (*)(PP_Instance instance))&Pnacl_M40_PPB_VideoDecoder _Create, 5239 .Create = (PP_Resource (*)(PP_Instance instance))&Pnacl_M40_PPB_VideoDecoder _Create,
5189 .IsVideoDecoder = (PP_Bool (*)(PP_Resource resource))&Pnacl_M40_PPB_VideoDec oder_IsVideoDecoder, 5240 .IsVideoDecoder = (PP_Bool (*)(PP_Resource resource))&Pnacl_M40_PPB_VideoDec oder_IsVideoDecoder,
5190 .Initialize = (int32_t (*)(PP_Resource video_decoder, PP_Resource graphics3d _context, PP_VideoProfile profile, PP_HardwareAcceleration acceleration, struct PP_CompletionCallback callback))&Pnacl_M40_PPB_VideoDecoder_Initialize, 5241 .Initialize = (int32_t (*)(PP_Resource video_decoder, PP_Resource graphics3d _context, PP_VideoProfile profile, PP_HardwareAcceleration acceleration, struct PP_CompletionCallback callback))&Pnacl_M40_PPB_VideoDecoder_Initialize,
5191 .Decode = (int32_t (*)(PP_Resource video_decoder, uint32_t decode_id, uint32 _t size, const void* buffer, struct PP_CompletionCallback callback))&Pnacl_M40_P PB_VideoDecoder_Decode, 5242 .Decode = (int32_t (*)(PP_Resource video_decoder, uint32_t decode_id, uint32 _t size, const void* buffer, struct PP_CompletionCallback callback))&Pnacl_M40_P PB_VideoDecoder_Decode,
5192 .GetPicture = (int32_t (*)(PP_Resource video_decoder, struct PP_VideoPicture * picture, struct PP_CompletionCallback callback))&Pnacl_M40_PPB_VideoDecoder_Ge tPicture, 5243 .GetPicture = (int32_t (*)(PP_Resource video_decoder, struct PP_VideoPicture * picture, struct PP_CompletionCallback callback))&Pnacl_M40_PPB_VideoDecoder_Ge tPicture,
5193 .RecyclePicture = (void (*)(PP_Resource video_decoder, const struct PP_Video Picture* picture))&Pnacl_M40_PPB_VideoDecoder_RecyclePicture, 5244 .RecyclePicture = (void (*)(PP_Resource video_decoder, const struct PP_Video Picture* picture))&Pnacl_M40_PPB_VideoDecoder_RecyclePicture,
5194 .Flush = (int32_t (*)(PP_Resource video_decoder, struct PP_CompletionCallbac k callback))&Pnacl_M40_PPB_VideoDecoder_Flush, 5245 .Flush = (int32_t (*)(PP_Resource video_decoder, struct PP_CompletionCallbac k callback))&Pnacl_M40_PPB_VideoDecoder_Flush,
5195 .Reset = (int32_t (*)(PP_Resource video_decoder, struct PP_CompletionCallbac k callback))&Pnacl_M40_PPB_VideoDecoder_Reset 5246 .Reset = (int32_t (*)(PP_Resource video_decoder, struct PP_CompletionCallbac k callback))&Pnacl_M40_PPB_VideoDecoder_Reset
5196 }; 5247 };
5197 5248
5249 static const struct PPB_VideoEncoder_0_1 Pnacl_Wrappers_PPB_VideoEncoder_0_1 = {
5250 .Create = (PP_Resource (*)(PP_Instance instance))&Pnacl_M42_PPB_VideoEncoder _Create,
5251 .IsVideoEncoder = (PP_Bool (*)(PP_Resource resource))&Pnacl_M42_PPB_VideoEnc oder_IsVideoEncoder,
5252 .GetSupportedProfiles = (int32_t (*)(PP_Resource video_encoder, struct PP_Ar rayOutput output, struct PP_CompletionCallback callback))&Pnacl_M42_PPB_VideoEnc oder_GetSupportedProfiles,
5253 .Initialize = (int32_t (*)(PP_Resource video_decoder, PP_VideoFrame_Format i nput_format, const struct PP_Size* input_visible_size, PP_VideoProfile output_pr ofile, uint32_t initial_bitrate, PP_HardwareAcceleration acceleration, struct PP _CompletionCallback callback))&Pnacl_M42_PPB_VideoEncoder_Initialize,
5254 .GetVideoFrame = (int32_t (*)(PP_Resource video_encoder, PP_Resource* video_ frame, struct PP_CompletionCallback callback))&Pnacl_M42_PPB_VideoEncoder_GetVid eoFrame,
5255 .Encode = (int32_t (*)(PP_Resource video_encoder, PP_Resource video_frame, P P_Bool force_keyframe, struct PP_CompletionCallback callback))&Pnacl_M42_PPB_Vid eoEncoder_Encode,
5256 .GetBitstreamBuffer = (int32_t (*)(PP_Resource video_encoder, struct PP_Bits treamBuffer* bitstream_buffer, struct PP_CompletionCallback callback))&Pnacl_M42 _PPB_VideoEncoder_GetBitstreamBuffer,
5257 .RecycleBitstreamBuffer = (void (*)(PP_Resource video_decoder, const struct PP_BitstreamBuffer* bitstream_buffer))&Pnacl_M42_PPB_VideoEncoder_RecycleBitstre amBuffer,
5258 .RequestEncodingParametersChange = (void (*)(PP_Resource video_decoder, uint 32_t bitrate, uint32_t framerate))&Pnacl_M42_PPB_VideoEncoder_RequestEncodingPar ametersChange
5259 };
5260
5198 /* Not generating wrapper interface for PPB_VideoFrame_0_1 */ 5261 /* Not generating wrapper interface for PPB_VideoFrame_0_1 */
5199 5262
5200 /* Not generating wrapper interface for PPB_View_1_0 */ 5263 /* Not generating wrapper interface for PPB_View_1_0 */
5201 5264
5202 /* Not generating wrapper interface for PPB_View_1_1 */ 5265 /* Not generating wrapper interface for PPB_View_1_1 */
5203 5266
5204 /* Not generating wrapper interface for PPB_View_1_2 */ 5267 /* Not generating wrapper interface for PPB_View_1_2 */
5205 5268
5206 static const struct PPB_WebSocket_1_0 Pnacl_Wrappers_PPB_WebSocket_1_0 = { 5269 static const struct PPB_WebSocket_1_0 Pnacl_Wrappers_PPB_WebSocket_1_0 = {
5207 .Create = (PP_Resource (*)(PP_Instance instance))&Pnacl_M18_PPB_WebSocket_Cr eate, 5270 .Create = (PP_Resource (*)(PP_Instance instance))&Pnacl_M18_PPB_WebSocket_Cr eate,
(...skipping 997 matching lines...) Expand 10 before | Expand all | Expand 10 after
6205 .wrapped_iface = (const void *) &Pnacl_Wrappers_PPB_VideoDecoder_0_2, 6268 .wrapped_iface = (const void *) &Pnacl_Wrappers_PPB_VideoDecoder_0_2,
6206 .real_iface = NULL 6269 .real_iface = NULL
6207 }; 6270 };
6208 6271
6209 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VideoDecoder_1_0 = { 6272 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VideoDecoder_1_0 = {
6210 .iface_macro = PPB_VIDEODECODER_INTERFACE_1_0, 6273 .iface_macro = PPB_VIDEODECODER_INTERFACE_1_0,
6211 .wrapped_iface = (const void *) &Pnacl_Wrappers_PPB_VideoDecoder_1_0, 6274 .wrapped_iface = (const void *) &Pnacl_Wrappers_PPB_VideoDecoder_1_0,
6212 .real_iface = NULL 6275 .real_iface = NULL
6213 }; 6276 };
6214 6277
6278 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VideoEncoder_0_1 = {
6279 .iface_macro = PPB_VIDEOENCODER_INTERFACE_0_1,
6280 .wrapped_iface = (const void *) &Pnacl_Wrappers_PPB_VideoEncoder_0_1,
6281 .real_iface = NULL
6282 };
6283
6215 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_WebSocket_1_0 = { 6284 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_WebSocket_1_0 = {
6216 .iface_macro = PPB_WEBSOCKET_INTERFACE_1_0, 6285 .iface_macro = PPB_WEBSOCKET_INTERFACE_1_0,
6217 .wrapped_iface = (const void *) &Pnacl_Wrappers_PPB_WebSocket_1_0, 6286 .wrapped_iface = (const void *) &Pnacl_Wrappers_PPB_WebSocket_1_0,
6218 .real_iface = NULL 6287 .real_iface = NULL
6219 }; 6288 };
6220 6289
6221 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPP_Messaging_1_0 = { 6290 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPP_Messaging_1_0 = {
6222 .iface_macro = PPP_MESSAGING_INTERFACE_1_0, 6291 .iface_macro = PPP_MESSAGING_INTERFACE_1_0,
6223 .wrapped_iface = (const void *) &Pnacl_Wrappers_PPP_Messaging_1_0, 6292 .wrapped_iface = (const void *) &Pnacl_Wrappers_PPP_Messaging_1_0,
6224 .real_iface = NULL 6293 .real_iface = NULL
(...skipping 393 matching lines...) Expand 10 before | Expand all | Expand 10 after
6618 &Pnacl_WrapperInfo_PPB_URLResponseInfo_1_0, 6687 &Pnacl_WrapperInfo_PPB_URLResponseInfo_1_0,
6619 &Pnacl_WrapperInfo_PPB_Var_1_0, 6688 &Pnacl_WrapperInfo_PPB_Var_1_0,
6620 &Pnacl_WrapperInfo_PPB_Var_1_1, 6689 &Pnacl_WrapperInfo_PPB_Var_1_1,
6621 &Pnacl_WrapperInfo_PPB_Var_1_2, 6690 &Pnacl_WrapperInfo_PPB_Var_1_2,
6622 &Pnacl_WrapperInfo_PPB_VarArray_1_0, 6691 &Pnacl_WrapperInfo_PPB_VarArray_1_0,
6623 &Pnacl_WrapperInfo_PPB_VarArrayBuffer_1_0, 6692 &Pnacl_WrapperInfo_PPB_VarArrayBuffer_1_0,
6624 &Pnacl_WrapperInfo_PPB_VarDictionary_1_0, 6693 &Pnacl_WrapperInfo_PPB_VarDictionary_1_0,
6625 &Pnacl_WrapperInfo_PPB_VideoDecoder_0_1, 6694 &Pnacl_WrapperInfo_PPB_VideoDecoder_0_1,
6626 &Pnacl_WrapperInfo_PPB_VideoDecoder_0_2, 6695 &Pnacl_WrapperInfo_PPB_VideoDecoder_0_2,
6627 &Pnacl_WrapperInfo_PPB_VideoDecoder_1_0, 6696 &Pnacl_WrapperInfo_PPB_VideoDecoder_1_0,
6697 &Pnacl_WrapperInfo_PPB_VideoEncoder_0_1,
6628 &Pnacl_WrapperInfo_PPB_WebSocket_1_0, 6698 &Pnacl_WrapperInfo_PPB_WebSocket_1_0,
6629 &Pnacl_WrapperInfo_PPB_AudioInput_Dev_0_3, 6699 &Pnacl_WrapperInfo_PPB_AudioInput_Dev_0_3,
6630 &Pnacl_WrapperInfo_PPB_AudioInput_Dev_0_4, 6700 &Pnacl_WrapperInfo_PPB_AudioInput_Dev_0_4,
6631 &Pnacl_WrapperInfo_PPB_DeviceRef_Dev_0_1, 6701 &Pnacl_WrapperInfo_PPB_DeviceRef_Dev_0_1,
6632 &Pnacl_WrapperInfo_PPB_FileChooser_Dev_0_5, 6702 &Pnacl_WrapperInfo_PPB_FileChooser_Dev_0_5,
6633 &Pnacl_WrapperInfo_PPB_FileChooser_Dev_0_6, 6703 &Pnacl_WrapperInfo_PPB_FileChooser_Dev_0_6,
6634 &Pnacl_WrapperInfo_PPB_Font_Dev_0_6, 6704 &Pnacl_WrapperInfo_PPB_Font_Dev_0_6,
6635 &Pnacl_WrapperInfo_PPB_IMEInputEvent_Dev_0_1, 6705 &Pnacl_WrapperInfo_PPB_IMEInputEvent_Dev_0_1,
6636 &Pnacl_WrapperInfo_PPB_IMEInputEvent_Dev_0_2, 6706 &Pnacl_WrapperInfo_PPB_IMEInputEvent_Dev_0_2,
6637 &Pnacl_WrapperInfo_PPB_Printing_Dev_0_7, 6707 &Pnacl_WrapperInfo_PPB_Printing_Dev_0_7,
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
6753 6823
6754 /* Initialize the real_iface if it hasn't been. The wrapper depends on it. */ 6824 /* Initialize the real_iface if it hasn't been. The wrapper depends on it. */
6755 if (wrapper->real_iface == NULL) { 6825 if (wrapper->real_iface == NULL) {
6756 const void *iface = (*__real_PPPGetInterface)(name); 6826 const void *iface = (*__real_PPPGetInterface)(name);
6757 if (NULL == iface) return NULL; 6827 if (NULL == iface) return NULL;
6758 wrapper->real_iface = iface; 6828 wrapper->real_iface = iface;
6759 } 6829 }
6760 6830
6761 return wrapper->wrapped_iface; 6831 return wrapper->wrapped_iface;
6762 } 6832 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698