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

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

Issue 365153003: Pepper: add PPB_VideoEncoder interface (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update API to prevent the user from dealing with buffer management Created 6 years, 5 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/cpp/video_encoder_client.cc ('k') | ppapi/ppapi_shared.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) 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_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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_URLLoader_1_0; 136 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_URLLoader_1_0;
136 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_URLRequestInfo_1_0; 137 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_URLRequestInfo_1_0;
137 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_URLResponseInfo_1_0; 138 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_URLResponseInfo_1_0;
138 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Var_1_0; 139 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Var_1_0;
139 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Var_1_1; 140 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Var_1_1;
140 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Var_1_2; 141 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Var_1_2;
141 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VarArray_1_0; 142 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VarArray_1_0;
142 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VarArrayBuffer_1_0; 143 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VarArrayBuffer_1_0;
143 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VarDictionary_1_0; 144 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VarDictionary_1_0;
144 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VideoDecoder_0_1; 145 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VideoDecoder_0_1;
146 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VideoEncoder_0_1;
145 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_WebSocket_1_0; 147 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_WebSocket_1_0;
146 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPP_Messaging_1_0; 148 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPP_Messaging_1_0;
147 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_AudioInput_Dev_0_3; 149 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_AudioInput_Dev_0_3;
148 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_AudioInput_Dev_0_4; 150 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_AudioInput_Dev_0_4;
149 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_DeviceRef_Dev_0_1; 151 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_DeviceRef_Dev_0_1;
150 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileChooser_Dev_0_5; 152 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileChooser_Dev_0_5;
151 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileChooser_Dev_0_6; 153 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileChooser_Dev_0_6;
152 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Font_Dev_0_6; 154 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Font_Dev_0_6;
153 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_IMEInputEvent_Dev_0_1; 155 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_IMEInputEvent_Dev_0_1;
154 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_IMEInputEvent_Dev_0_2; 156 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_IMEInputEvent_Dev_0_2;
(...skipping 1751 matching lines...) Expand 10 before | Expand all | Expand 10 after
1906 return iface->Flush(video_decoder, *callback); 1908 return iface->Flush(video_decoder, *callback);
1907 } 1909 }
1908 1910
1909 static int32_t Pnacl_M36_PPB_VideoDecoder_Reset(PP_Resource video_decoder, struc t PP_CompletionCallback* callback) { 1911 static int32_t Pnacl_M36_PPB_VideoDecoder_Reset(PP_Resource video_decoder, struc t PP_CompletionCallback* callback) {
1910 const struct PPB_VideoDecoder_0_1 *iface = Pnacl_WrapperInfo_PPB_VideoDecoder_ 0_1.real_iface; 1912 const struct PPB_VideoDecoder_0_1 *iface = Pnacl_WrapperInfo_PPB_VideoDecoder_ 0_1.real_iface;
1911 return iface->Reset(video_decoder, *callback); 1913 return iface->Reset(video_decoder, *callback);
1912 } 1914 }
1913 1915
1914 /* End wrapper methods for PPB_VideoDecoder_0_1 */ 1916 /* End wrapper methods for PPB_VideoDecoder_0_1 */
1915 1917
1918 /* Begin wrapper methods for PPB_VideoEncoder_0_1 */
1919
1920 static PP_Resource Pnacl_M37_PPB_VideoEncoder_Create(PP_Instance instance) {
1921 const struct PPB_VideoEncoder_0_1 *iface = Pnacl_WrapperInfo_PPB_VideoEncoder_ 0_1.real_iface;
1922 return iface->Create(instance);
1923 }
1924
1925 static PP_Bool Pnacl_M37_PPB_VideoEncoder_IsVideoEncoder(PP_Resource resource) {
1926 const struct PPB_VideoEncoder_0_1 *iface = Pnacl_WrapperInfo_PPB_VideoEncoder_ 0_1.real_iface;
1927 return iface->IsVideoEncoder(resource);
1928 }
1929
1930 static int32_t Pnacl_M37_PPB_VideoEncoder_Initialize(PP_Resource video_encoder, PP_Resource graphics3d_context, const struct PP_VideoEncoderParams* params, void * user_data, PPB_VideoEncoder_Ready_Func callback) {
1931 const struct PPB_VideoEncoder_0_1 *iface = Pnacl_WrapperInfo_PPB_VideoEncoder_ 0_1.real_iface;
1932 return iface->Initialize(video_encoder, graphics3d_context, params, user_data, callback);
1933 }
1934
1935 static int32_t Pnacl_M37_PPB_VideoEncoder_Encode(PP_Resource video_encoder, uint 32_t encode_id, const struct PP_VideoEncoderPicture* picture, PP_Bool force_keyf rame, struct PP_CompletionCallback* callback) {
1936 const struct PPB_VideoEncoder_0_1 *iface = Pnacl_WrapperInfo_PPB_VideoEncoder_ 0_1.real_iface;
1937 return iface->Encode(video_encoder, encode_id, picture, force_keyframe, *callb ack);
1938 }
1939
1940 static int32_t Pnacl_M37_PPB_VideoEncoder_Reset(PP_Resource video_encoder, struc t PP_CompletionCallback* callback) {
1941 const struct PPB_VideoEncoder_0_1 *iface = Pnacl_WrapperInfo_PPB_VideoEncoder_ 0_1.real_iface;
1942 return iface->Reset(video_encoder, *callback);
1943 }
1944
1945 /* End wrapper methods for PPB_VideoEncoder_0_1 */
1946
1916 /* Not generating wrapper methods for PPB_VideoFrame_0_1 */ 1947 /* Not generating wrapper methods for PPB_VideoFrame_0_1 */
1917 1948
1918 /* Not generating wrapper methods for PPB_View_1_0 */ 1949 /* Not generating wrapper methods for PPB_View_1_0 */
1919 1950
1920 /* Not generating wrapper methods for PPB_View_1_1 */ 1951 /* Not generating wrapper methods for PPB_View_1_1 */
1921 1952
1922 /* Not generating wrapper methods for PPB_View_1_2 */ 1953 /* Not generating wrapper methods for PPB_View_1_2 */
1923 1954
1924 /* Begin wrapper methods for PPB_WebSocket_1_0 */ 1955 /* Begin wrapper methods for PPB_WebSocket_1_0 */
1925 1956
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
2011 const struct PPP_Messaging_1_0 *iface = Pnacl_WrapperInfo_PPP_Messaging_1_0.re al_iface; 2042 const struct PPP_Messaging_1_0 *iface = Pnacl_WrapperInfo_PPP_Messaging_1_0.re al_iface;
2012 void (*temp_fp)(PP_Instance instance, struct PP_Var* message) = 2043 void (*temp_fp)(PP_Instance instance, struct PP_Var* message) =
2013 ((void (*)(PP_Instance instance, struct PP_Var* message))iface->HandleMessag e); 2044 ((void (*)(PP_Instance instance, struct PP_Var* message))iface->HandleMessag e);
2014 temp_fp(instance, &message); 2045 temp_fp(instance, &message);
2015 } 2046 }
2016 2047
2017 /* End wrapper methods for PPP_Messaging_1_0 */ 2048 /* End wrapper methods for PPP_Messaging_1_0 */
2018 2049
2019 /* Not generating wrapper methods for PPP_MouseLock_1_0 */ 2050 /* Not generating wrapper methods for PPP_MouseLock_1_0 */
2020 2051
2052 /* Not generating wrapper methods for PPP_VideoEncoder_0_1 */
2053
2021 /* Not generating wrapper methods for PPB_BrokerTrusted_0_2 */ 2054 /* Not generating wrapper methods for PPB_BrokerTrusted_0_2 */
2022 2055
2023 /* Not generating wrapper methods for PPB_BrokerTrusted_0_3 */ 2056 /* Not generating wrapper methods for PPB_BrokerTrusted_0_3 */
2024 2057
2025 /* Not generating wrapper methods for PPB_BrowserFont_Trusted_1_0 */ 2058 /* Not generating wrapper methods for PPB_BrowserFont_Trusted_1_0 */
2026 2059
2027 /* Not generating wrapper methods for PPB_CharSet_Trusted_1_0 */ 2060 /* Not generating wrapper methods for PPB_CharSet_Trusted_1_0 */
2028 2061
2029 /* Not generating wrapper methods for PPB_FileChooserTrusted_0_5 */ 2062 /* Not generating wrapper methods for PPB_FileChooserTrusted_0_5 */
2030 2063
(...skipping 2756 matching lines...) Expand 10 before | Expand all | Expand 10 after
4787 .Create = (PP_Resource (*)(PP_Instance instance))&Pnacl_M36_PPB_VideoDecoder _Create, 4820 .Create = (PP_Resource (*)(PP_Instance instance))&Pnacl_M36_PPB_VideoDecoder _Create,
4788 .IsVideoDecoder = (PP_Bool (*)(PP_Resource resource))&Pnacl_M36_PPB_VideoDec oder_IsVideoDecoder, 4821 .IsVideoDecoder = (PP_Bool (*)(PP_Resource resource))&Pnacl_M36_PPB_VideoDec oder_IsVideoDecoder,
4789 .Initialize = (int32_t (*)(PP_Resource video_decoder, PP_Resource graphics3d _context, PP_VideoProfile profile, PP_Bool allow_software_fallback, struct PP_Co mpletionCallback callback))&Pnacl_M36_PPB_VideoDecoder_Initialize, 4822 .Initialize = (int32_t (*)(PP_Resource video_decoder, PP_Resource graphics3d _context, PP_VideoProfile profile, PP_Bool allow_software_fallback, struct PP_Co mpletionCallback callback))&Pnacl_M36_PPB_VideoDecoder_Initialize,
4790 .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_VideoDecoder_Decode, 4823 .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_VideoDecoder_Decode,
4791 .GetPicture = (int32_t (*)(PP_Resource video_decoder, struct PP_VideoPicture * picture, struct PP_CompletionCallback callback))&Pnacl_M36_PPB_VideoDecoder_Ge tPicture, 4824 .GetPicture = (int32_t (*)(PP_Resource video_decoder, struct PP_VideoPicture * picture, struct PP_CompletionCallback callback))&Pnacl_M36_PPB_VideoDecoder_Ge tPicture,
4792 .RecyclePicture = (void (*)(PP_Resource video_decoder, const struct PP_Video Picture* picture))&Pnacl_M36_PPB_VideoDecoder_RecyclePicture, 4825 .RecyclePicture = (void (*)(PP_Resource video_decoder, const struct PP_Video Picture* picture))&Pnacl_M36_PPB_VideoDecoder_RecyclePicture,
4793 .Flush = (int32_t (*)(PP_Resource video_decoder, struct PP_CompletionCallbac k callback))&Pnacl_M36_PPB_VideoDecoder_Flush, 4826 .Flush = (int32_t (*)(PP_Resource video_decoder, struct PP_CompletionCallbac k callback))&Pnacl_M36_PPB_VideoDecoder_Flush,
4794 .Reset = (int32_t (*)(PP_Resource video_decoder, struct PP_CompletionCallbac k callback))&Pnacl_M36_PPB_VideoDecoder_Reset 4827 .Reset = (int32_t (*)(PP_Resource video_decoder, struct PP_CompletionCallbac k callback))&Pnacl_M36_PPB_VideoDecoder_Reset
4795 }; 4828 };
4796 4829
4830 static const struct PPB_VideoEncoder_0_1 Pnacl_Wrappers_PPB_VideoEncoder_0_1 = {
4831 .Create = (PP_Resource (*)(PP_Instance instance))&Pnacl_M37_PPB_VideoEncoder _Create,
4832 .IsVideoEncoder = (PP_Bool (*)(PP_Resource resource))&Pnacl_M37_PPB_VideoEnc oder_IsVideoEncoder,
4833 .Initialize = (int32_t (*)(PP_Resource video_encoder, PP_Resource graphics3d _context, const struct PP_VideoEncoderParams* params, void* user_data, PPB_Video Encoder_Ready_Func callback))&Pnacl_M37_PPB_VideoEncoder_Initialize,
4834 .Encode = (int32_t (*)(PP_Resource video_encoder, uint32_t encode_id, const struct PP_VideoEncoderPicture* picture, PP_Bool force_keyframe, struct PP_Comple tionCallback callback))&Pnacl_M37_PPB_VideoEncoder_Encode,
4835 .Reset = (int32_t (*)(PP_Resource video_encoder, struct PP_CompletionCallbac k callback))&Pnacl_M37_PPB_VideoEncoder_Reset
4836 };
4837
4797 /* Not generating wrapper interface for PPB_VideoFrame_0_1 */ 4838 /* Not generating wrapper interface for PPB_VideoFrame_0_1 */
4798 4839
4799 /* Not generating wrapper interface for PPB_View_1_0 */ 4840 /* Not generating wrapper interface for PPB_View_1_0 */
4800 4841
4801 /* Not generating wrapper interface for PPB_View_1_1 */ 4842 /* Not generating wrapper interface for PPB_View_1_1 */
4802 4843
4803 /* Not generating wrapper interface for PPB_View_1_2 */ 4844 /* Not generating wrapper interface for PPB_View_1_2 */
4804 4845
4805 static const struct PPB_WebSocket_1_0 Pnacl_Wrappers_PPB_WebSocket_1_0 = { 4846 static const struct PPB_WebSocket_1_0 Pnacl_Wrappers_PPB_WebSocket_1_0 = {
4806 .Create = (PP_Resource (*)(PP_Instance instance))&Pnacl_M18_PPB_WebSocket_Cr eate, 4847 .Create = (PP_Resource (*)(PP_Instance instance))&Pnacl_M18_PPB_WebSocket_Cr eate,
(...skipping 21 matching lines...) Expand all
4828 /* Not generating wrapper interface for PPP_Instance_1_1 */ 4869 /* Not generating wrapper interface for PPP_Instance_1_1 */
4829 4870
4830 /* Not generating wrapper interface for PPP_MessageHandler_0_1 */ 4871 /* Not generating wrapper interface for PPP_MessageHandler_0_1 */
4831 4872
4832 static const struct PPP_Messaging_1_0 Pnacl_Wrappers_PPP_Messaging_1_0 = { 4873 static const struct PPP_Messaging_1_0 Pnacl_Wrappers_PPP_Messaging_1_0 = {
4833 .HandleMessage = &Pnacl_M14_PPP_Messaging_HandleMessage 4874 .HandleMessage = &Pnacl_M14_PPP_Messaging_HandleMessage
4834 }; 4875 };
4835 4876
4836 /* Not generating wrapper interface for PPP_MouseLock_1_0 */ 4877 /* Not generating wrapper interface for PPP_MouseLock_1_0 */
4837 4878
4879 /* Not generating wrapper interface for PPP_VideoEncoder_0_1 */
4880
4838 /* Not generating wrapper interface for PPB_BrokerTrusted_0_2 */ 4881 /* Not generating wrapper interface for PPB_BrokerTrusted_0_2 */
4839 4882
4840 /* Not generating wrapper interface for PPB_BrokerTrusted_0_3 */ 4883 /* Not generating wrapper interface for PPB_BrokerTrusted_0_3 */
4841 4884
4842 /* Not generating wrapper interface for PPB_BrowserFont_Trusted_1_0 */ 4885 /* Not generating wrapper interface for PPB_BrowserFont_Trusted_1_0 */
4843 4886
4844 /* Not generating wrapper interface for PPB_CharSet_Trusted_1_0 */ 4887 /* Not generating wrapper interface for PPB_CharSet_Trusted_1_0 */
4845 4888
4846 /* Not generating wrapper interface for PPB_FileChooserTrusted_0_5 */ 4889 /* Not generating wrapper interface for PPB_FileChooserTrusted_0_5 */
4847 4890
(...skipping 908 matching lines...) Expand 10 before | Expand all | Expand 10 after
5756 .wrapped_iface = (const void *) &Pnacl_Wrappers_PPB_VarDictionary_1_0, 5799 .wrapped_iface = (const void *) &Pnacl_Wrappers_PPB_VarDictionary_1_0,
5757 .real_iface = NULL 5800 .real_iface = NULL
5758 }; 5801 };
5759 5802
5760 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VideoDecoder_0_1 = { 5803 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VideoDecoder_0_1 = {
5761 .iface_macro = PPB_VIDEODECODER_INTERFACE_0_1, 5804 .iface_macro = PPB_VIDEODECODER_INTERFACE_0_1,
5762 .wrapped_iface = (const void *) &Pnacl_Wrappers_PPB_VideoDecoder_0_1, 5805 .wrapped_iface = (const void *) &Pnacl_Wrappers_PPB_VideoDecoder_0_1,
5763 .real_iface = NULL 5806 .real_iface = NULL
5764 }; 5807 };
5765 5808
5809 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VideoEncoder_0_1 = {
5810 .iface_macro = PPB_VIDEOENCODER_INTERFACE_0_1,
5811 .wrapped_iface = (const void *) &Pnacl_Wrappers_PPB_VideoEncoder_0_1,
5812 .real_iface = NULL
5813 };
5814
5766 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_WebSocket_1_0 = { 5815 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_WebSocket_1_0 = {
5767 .iface_macro = PPB_WEBSOCKET_INTERFACE_1_0, 5816 .iface_macro = PPB_WEBSOCKET_INTERFACE_1_0,
5768 .wrapped_iface = (const void *) &Pnacl_Wrappers_PPB_WebSocket_1_0, 5817 .wrapped_iface = (const void *) &Pnacl_Wrappers_PPB_WebSocket_1_0,
5769 .real_iface = NULL 5818 .real_iface = NULL
5770 }; 5819 };
5771 5820
5772 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPP_Messaging_1_0 = { 5821 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPP_Messaging_1_0 = {
5773 .iface_macro = PPP_MESSAGING_INTERFACE_1_0, 5822 .iface_macro = PPP_MESSAGING_INTERFACE_1_0,
5774 .wrapped_iface = (const void *) &Pnacl_Wrappers_PPP_Messaging_1_0, 5823 .wrapped_iface = (const void *) &Pnacl_Wrappers_PPP_Messaging_1_0,
5775 .real_iface = NULL 5824 .real_iface = NULL
(...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after
6158 &Pnacl_WrapperInfo_PPB_URLLoader_1_0, 6207 &Pnacl_WrapperInfo_PPB_URLLoader_1_0,
6159 &Pnacl_WrapperInfo_PPB_URLRequestInfo_1_0, 6208 &Pnacl_WrapperInfo_PPB_URLRequestInfo_1_0,
6160 &Pnacl_WrapperInfo_PPB_URLResponseInfo_1_0, 6209 &Pnacl_WrapperInfo_PPB_URLResponseInfo_1_0,
6161 &Pnacl_WrapperInfo_PPB_Var_1_0, 6210 &Pnacl_WrapperInfo_PPB_Var_1_0,
6162 &Pnacl_WrapperInfo_PPB_Var_1_1, 6211 &Pnacl_WrapperInfo_PPB_Var_1_1,
6163 &Pnacl_WrapperInfo_PPB_Var_1_2, 6212 &Pnacl_WrapperInfo_PPB_Var_1_2,
6164 &Pnacl_WrapperInfo_PPB_VarArray_1_0, 6213 &Pnacl_WrapperInfo_PPB_VarArray_1_0,
6165 &Pnacl_WrapperInfo_PPB_VarArrayBuffer_1_0, 6214 &Pnacl_WrapperInfo_PPB_VarArrayBuffer_1_0,
6166 &Pnacl_WrapperInfo_PPB_VarDictionary_1_0, 6215 &Pnacl_WrapperInfo_PPB_VarDictionary_1_0,
6167 &Pnacl_WrapperInfo_PPB_VideoDecoder_0_1, 6216 &Pnacl_WrapperInfo_PPB_VideoDecoder_0_1,
6217 &Pnacl_WrapperInfo_PPB_VideoEncoder_0_1,
6168 &Pnacl_WrapperInfo_PPB_WebSocket_1_0, 6218 &Pnacl_WrapperInfo_PPB_WebSocket_1_0,
6169 &Pnacl_WrapperInfo_PPB_AudioInput_Dev_0_3, 6219 &Pnacl_WrapperInfo_PPB_AudioInput_Dev_0_3,
6170 &Pnacl_WrapperInfo_PPB_AudioInput_Dev_0_4, 6220 &Pnacl_WrapperInfo_PPB_AudioInput_Dev_0_4,
6171 &Pnacl_WrapperInfo_PPB_DeviceRef_Dev_0_1, 6221 &Pnacl_WrapperInfo_PPB_DeviceRef_Dev_0_1,
6172 &Pnacl_WrapperInfo_PPB_FileChooser_Dev_0_5, 6222 &Pnacl_WrapperInfo_PPB_FileChooser_Dev_0_5,
6173 &Pnacl_WrapperInfo_PPB_FileChooser_Dev_0_6, 6223 &Pnacl_WrapperInfo_PPB_FileChooser_Dev_0_6,
6174 &Pnacl_WrapperInfo_PPB_Font_Dev_0_6, 6224 &Pnacl_WrapperInfo_PPB_Font_Dev_0_6,
6175 &Pnacl_WrapperInfo_PPB_IMEInputEvent_Dev_0_1, 6225 &Pnacl_WrapperInfo_PPB_IMEInputEvent_Dev_0_1,
6176 &Pnacl_WrapperInfo_PPB_IMEInputEvent_Dev_0_2, 6226 &Pnacl_WrapperInfo_PPB_IMEInputEvent_Dev_0_2,
6177 &Pnacl_WrapperInfo_PPB_Printing_Dev_0_7, 6227 &Pnacl_WrapperInfo_PPB_Printing_Dev_0_7,
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
6292 6342
6293 /* Initialize the real_iface if it hasn't been. The wrapper depends on it. */ 6343 /* Initialize the real_iface if it hasn't been. The wrapper depends on it. */
6294 if (wrapper->real_iface == NULL) { 6344 if (wrapper->real_iface == NULL) {
6295 const void *iface = (*__real_PPPGetInterface)(name); 6345 const void *iface = (*__real_PPPGetInterface)(name);
6296 if (NULL == iface) return NULL; 6346 if (NULL == iface) return NULL;
6297 wrapper->real_iface = iface; 6347 wrapper->real_iface = iface;
6298 } 6348 }
6299 6349
6300 return wrapper->wrapped_iface; 6350 return wrapper->wrapped_iface;
6301 } 6351 }
OLDNEW
« no previous file with comments | « ppapi/cpp/video_encoder_client.cc ('k') | ppapi/ppapi_shared.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698