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

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

Issue 859313002: Pepper: Define PPB_VideoEncoder API + Implementation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
« no previous file with comments | « ppapi/examples/video_encode/video_encode.html ('k') | ppapi/ppapi_proxy.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_encoder, 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_encoder, input_format, input_visible_size, outp ut_profile, initial_bitrate, acceleration, *callback);
2211 }
2212
2213 static int32_t Pnacl_M42_PPB_VideoEncoder_GetFramesRequired(PP_Resource video_en coder) {
2214 const struct PPB_VideoEncoder_0_1 *iface = Pnacl_WrapperInfo_PPB_VideoEncoder_ 0_1.real_iface;
2215 return iface->GetFramesRequired(video_encoder);
2216 }
2217
2218 static int32_t Pnacl_M42_PPB_VideoEncoder_GetFrameCodedSize(PP_Resource video_en coder, struct PP_Size* coded_size) {
2219 const struct PPB_VideoEncoder_0_1 *iface = Pnacl_WrapperInfo_PPB_VideoEncoder_ 0_1.real_iface;
2220 return iface->GetFrameCodedSize(video_encoder, coded_size);
2221 }
2222
2223 static int32_t Pnacl_M42_PPB_VideoEncoder_GetVideoFrame(PP_Resource video_encode r, PP_Resource* video_frame, struct PP_CompletionCallback* callback) {
2224 const struct PPB_VideoEncoder_0_1 *iface = Pnacl_WrapperInfo_PPB_VideoEncoder_ 0_1.real_iface;
2225 return iface->GetVideoFrame(video_encoder, video_frame, *callback);
2226 }
2227
2228 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) {
2229 const struct PPB_VideoEncoder_0_1 *iface = Pnacl_WrapperInfo_PPB_VideoEncoder_ 0_1.real_iface;
2230 return iface->Encode(video_encoder, video_frame, force_keyframe, *callback);
2231 }
2232
2233 static int32_t Pnacl_M42_PPB_VideoEncoder_GetBitstreamBuffer(PP_Resource video_e ncoder, struct PP_BitstreamBuffer* bitstream_buffer, struct PP_CompletionCallbac k* callback) {
2234 const struct PPB_VideoEncoder_0_1 *iface = Pnacl_WrapperInfo_PPB_VideoEncoder_ 0_1.real_iface;
2235 return iface->GetBitstreamBuffer(video_encoder, bitstream_buffer, *callback);
2236 }
2237
2238 static void Pnacl_M42_PPB_VideoEncoder_RecycleBitstreamBuffer(PP_Resource video_ encoder, const struct PP_BitstreamBuffer* bitstream_buffer) {
2239 const struct PPB_VideoEncoder_0_1 *iface = Pnacl_WrapperInfo_PPB_VideoEncoder_ 0_1.real_iface;
2240 iface->RecycleBitstreamBuffer(video_encoder, bitstream_buffer);
2241 }
2242
2243 static void Pnacl_M42_PPB_VideoEncoder_RequestEncodingParametersChange(PP_Resour ce video_encoder, uint32_t bitrate, uint32_t framerate) {
2244 const struct PPB_VideoEncoder_0_1 *iface = Pnacl_WrapperInfo_PPB_VideoEncoder_ 0_1.real_iface;
2245 iface->RequestEncodingParametersChange(video_encoder, bitrate, framerate);
2246 }
2247
2248 /* End wrapper methods for PPB_VideoEncoder_0_1 */
2249
2189 /* Not generating wrapper methods for PPB_VideoFrame_0_1 */ 2250 /* Not generating wrapper methods for PPB_VideoFrame_0_1 */
2190 2251
2191 /* Not generating wrapper methods for PPB_View_1_0 */ 2252 /* Not generating wrapper methods for PPB_View_1_0 */
2192 2253
2193 /* Not generating wrapper methods for PPB_View_1_1 */ 2254 /* Not generating wrapper methods for PPB_View_1_1 */
2194 2255
2195 /* Not generating wrapper methods for PPB_View_1_2 */ 2256 /* Not generating wrapper methods for PPB_View_1_2 */
2196 2257
2197 /* Begin wrapper methods for PPB_WebSocket_1_0 */ 2258 /* Begin wrapper methods for PPB_WebSocket_1_0 */
2198 2259
(...skipping 2989 matching lines...) Expand 10 before | Expand all | Expand 10 after
5188 .Create = (PP_Resource (*)(PP_Instance instance))&Pnacl_M40_PPB_VideoDecoder _Create, 5249 .Create = (PP_Resource (*)(PP_Instance instance))&Pnacl_M40_PPB_VideoDecoder _Create,
5189 .IsVideoDecoder = (PP_Bool (*)(PP_Resource resource))&Pnacl_M40_PPB_VideoDec oder_IsVideoDecoder, 5250 .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, 5251 .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, 5252 .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, 5253 .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, 5254 .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, 5255 .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 5256 .Reset = (int32_t (*)(PP_Resource video_decoder, struct PP_CompletionCallbac k callback))&Pnacl_M40_PPB_VideoDecoder_Reset
5196 }; 5257 };
5197 5258
5259 static const struct PPB_VideoEncoder_0_1 Pnacl_Wrappers_PPB_VideoEncoder_0_1 = {
5260 .Create = (PP_Resource (*)(PP_Instance instance))&Pnacl_M42_PPB_VideoEncoder _Create,
5261 .IsVideoEncoder = (PP_Bool (*)(PP_Resource resource))&Pnacl_M42_PPB_VideoEnc oder_IsVideoEncoder,
5262 .GetSupportedProfiles = (int32_t (*)(PP_Resource video_encoder, struct PP_Ar rayOutput output, struct PP_CompletionCallback callback))&Pnacl_M42_PPB_VideoEnc oder_GetSupportedProfiles,
5263 .Initialize = (int32_t (*)(PP_Resource video_encoder, 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,
5264 .GetFramesRequired = (int32_t (*)(PP_Resource video_encoder))&Pnacl_M42_PPB_ VideoEncoder_GetFramesRequired,
5265 .GetFrameCodedSize = (int32_t (*)(PP_Resource video_encoder, struct PP_Size* coded_size))&Pnacl_M42_PPB_VideoEncoder_GetFrameCodedSize,
5266 .GetVideoFrame = (int32_t (*)(PP_Resource video_encoder, PP_Resource* video_ frame, struct PP_CompletionCallback callback))&Pnacl_M42_PPB_VideoEncoder_GetVid eoFrame,
5267 .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,
5268 .GetBitstreamBuffer = (int32_t (*)(PP_Resource video_encoder, struct PP_Bits treamBuffer* bitstream_buffer, struct PP_CompletionCallback callback))&Pnacl_M42 _PPB_VideoEncoder_GetBitstreamBuffer,
5269 .RecycleBitstreamBuffer = (void (*)(PP_Resource video_encoder, const struct PP_BitstreamBuffer* bitstream_buffer))&Pnacl_M42_PPB_VideoEncoder_RecycleBitstre amBuffer,
5270 .RequestEncodingParametersChange = (void (*)(PP_Resource video_encoder, uint 32_t bitrate, uint32_t framerate))&Pnacl_M42_PPB_VideoEncoder_RequestEncodingPar ametersChange
5271 };
5272
5198 /* Not generating wrapper interface for PPB_VideoFrame_0_1 */ 5273 /* Not generating wrapper interface for PPB_VideoFrame_0_1 */
5199 5274
5200 /* Not generating wrapper interface for PPB_View_1_0 */ 5275 /* Not generating wrapper interface for PPB_View_1_0 */
5201 5276
5202 /* Not generating wrapper interface for PPB_View_1_1 */ 5277 /* Not generating wrapper interface for PPB_View_1_1 */
5203 5278
5204 /* Not generating wrapper interface for PPB_View_1_2 */ 5279 /* Not generating wrapper interface for PPB_View_1_2 */
5205 5280
5206 static const struct PPB_WebSocket_1_0 Pnacl_Wrappers_PPB_WebSocket_1_0 = { 5281 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, 5282 .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, 6280 .wrapped_iface = (const void *) &Pnacl_Wrappers_PPB_VideoDecoder_0_2,
6206 .real_iface = NULL 6281 .real_iface = NULL
6207 }; 6282 };
6208 6283
6209 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VideoDecoder_1_0 = { 6284 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VideoDecoder_1_0 = {
6210 .iface_macro = PPB_VIDEODECODER_INTERFACE_1_0, 6285 .iface_macro = PPB_VIDEODECODER_INTERFACE_1_0,
6211 .wrapped_iface = (const void *) &Pnacl_Wrappers_PPB_VideoDecoder_1_0, 6286 .wrapped_iface = (const void *) &Pnacl_Wrappers_PPB_VideoDecoder_1_0,
6212 .real_iface = NULL 6287 .real_iface = NULL
6213 }; 6288 };
6214 6289
6290 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VideoEncoder_0_1 = {
6291 .iface_macro = PPB_VIDEOENCODER_INTERFACE_0_1,
6292 .wrapped_iface = (const void *) &Pnacl_Wrappers_PPB_VideoEncoder_0_1,
6293 .real_iface = NULL
6294 };
6295
6215 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_WebSocket_1_0 = { 6296 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_WebSocket_1_0 = {
6216 .iface_macro = PPB_WEBSOCKET_INTERFACE_1_0, 6297 .iface_macro = PPB_WEBSOCKET_INTERFACE_1_0,
6217 .wrapped_iface = (const void *) &Pnacl_Wrappers_PPB_WebSocket_1_0, 6298 .wrapped_iface = (const void *) &Pnacl_Wrappers_PPB_WebSocket_1_0,
6218 .real_iface = NULL 6299 .real_iface = NULL
6219 }; 6300 };
6220 6301
6221 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPP_Messaging_1_0 = { 6302 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPP_Messaging_1_0 = {
6222 .iface_macro = PPP_MESSAGING_INTERFACE_1_0, 6303 .iface_macro = PPP_MESSAGING_INTERFACE_1_0,
6223 .wrapped_iface = (const void *) &Pnacl_Wrappers_PPP_Messaging_1_0, 6304 .wrapped_iface = (const void *) &Pnacl_Wrappers_PPP_Messaging_1_0,
6224 .real_iface = NULL 6305 .real_iface = NULL
(...skipping 393 matching lines...) Expand 10 before | Expand all | Expand 10 after
6618 &Pnacl_WrapperInfo_PPB_URLResponseInfo_1_0, 6699 &Pnacl_WrapperInfo_PPB_URLResponseInfo_1_0,
6619 &Pnacl_WrapperInfo_PPB_Var_1_0, 6700 &Pnacl_WrapperInfo_PPB_Var_1_0,
6620 &Pnacl_WrapperInfo_PPB_Var_1_1, 6701 &Pnacl_WrapperInfo_PPB_Var_1_1,
6621 &Pnacl_WrapperInfo_PPB_Var_1_2, 6702 &Pnacl_WrapperInfo_PPB_Var_1_2,
6622 &Pnacl_WrapperInfo_PPB_VarArray_1_0, 6703 &Pnacl_WrapperInfo_PPB_VarArray_1_0,
6623 &Pnacl_WrapperInfo_PPB_VarArrayBuffer_1_0, 6704 &Pnacl_WrapperInfo_PPB_VarArrayBuffer_1_0,
6624 &Pnacl_WrapperInfo_PPB_VarDictionary_1_0, 6705 &Pnacl_WrapperInfo_PPB_VarDictionary_1_0,
6625 &Pnacl_WrapperInfo_PPB_VideoDecoder_0_1, 6706 &Pnacl_WrapperInfo_PPB_VideoDecoder_0_1,
6626 &Pnacl_WrapperInfo_PPB_VideoDecoder_0_2, 6707 &Pnacl_WrapperInfo_PPB_VideoDecoder_0_2,
6627 &Pnacl_WrapperInfo_PPB_VideoDecoder_1_0, 6708 &Pnacl_WrapperInfo_PPB_VideoDecoder_1_0,
6709 &Pnacl_WrapperInfo_PPB_VideoEncoder_0_1,
6628 &Pnacl_WrapperInfo_PPB_WebSocket_1_0, 6710 &Pnacl_WrapperInfo_PPB_WebSocket_1_0,
6629 &Pnacl_WrapperInfo_PPB_AudioInput_Dev_0_3, 6711 &Pnacl_WrapperInfo_PPB_AudioInput_Dev_0_3,
6630 &Pnacl_WrapperInfo_PPB_AudioInput_Dev_0_4, 6712 &Pnacl_WrapperInfo_PPB_AudioInput_Dev_0_4,
6631 &Pnacl_WrapperInfo_PPB_DeviceRef_Dev_0_1, 6713 &Pnacl_WrapperInfo_PPB_DeviceRef_Dev_0_1,
6632 &Pnacl_WrapperInfo_PPB_FileChooser_Dev_0_5, 6714 &Pnacl_WrapperInfo_PPB_FileChooser_Dev_0_5,
6633 &Pnacl_WrapperInfo_PPB_FileChooser_Dev_0_6, 6715 &Pnacl_WrapperInfo_PPB_FileChooser_Dev_0_6,
6634 &Pnacl_WrapperInfo_PPB_Font_Dev_0_6, 6716 &Pnacl_WrapperInfo_PPB_Font_Dev_0_6,
6635 &Pnacl_WrapperInfo_PPB_IMEInputEvent_Dev_0_1, 6717 &Pnacl_WrapperInfo_PPB_IMEInputEvent_Dev_0_1,
6636 &Pnacl_WrapperInfo_PPB_IMEInputEvent_Dev_0_2, 6718 &Pnacl_WrapperInfo_PPB_IMEInputEvent_Dev_0_2,
6637 &Pnacl_WrapperInfo_PPB_Printing_Dev_0_7, 6719 &Pnacl_WrapperInfo_PPB_Printing_Dev_0_7,
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
6753 6835
6754 /* Initialize the real_iface if it hasn't been. The wrapper depends on it. */ 6836 /* Initialize the real_iface if it hasn't been. The wrapper depends on it. */
6755 if (wrapper->real_iface == NULL) { 6837 if (wrapper->real_iface == NULL) {
6756 const void *iface = (*__real_PPPGetInterface)(name); 6838 const void *iface = (*__real_PPPGetInterface)(name);
6757 if (NULL == iface) return NULL; 6839 if (NULL == iface) return NULL;
6758 wrapper->real_iface = iface; 6840 wrapper->real_iface = iface;
6759 } 6841 }
6760 6842
6761 return wrapper->wrapped_iface; 6843 return wrapper->wrapped_iface;
6762 } 6844 }
OLDNEW
« no previous file with comments | « ppapi/examples/video_encode/video_encode.html ('k') | ppapi/ppapi_proxy.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698