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

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

Issue 496203002: Pepper: PPB_VideoDecoder software-only mode. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments. Created 6 years, 4 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
« no previous file with comments | « ppapi/examples/video_decode/video_decode.cc ('k') | ppapi/proxy/ppapi_messages.h » ('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 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_URLLoader_1_0; 137 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_URLLoader_1_0;
138 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_URLRequestInfo_1_0; 138 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_URLRequestInfo_1_0;
139 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_URLResponseInfo_1_0; 139 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_URLResponseInfo_1_0;
140 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Var_1_0; 140 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Var_1_0;
141 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Var_1_1; 141 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Var_1_1;
142 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Var_1_2; 142 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Var_1_2;
143 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VarArray_1_0; 143 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VarArray_1_0;
144 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VarArrayBuffer_1_0; 144 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VarArrayBuffer_1_0;
145 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VarDictionary_1_0; 145 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VarDictionary_1_0;
146 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VideoDecoder_0_1; 146 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VideoDecoder_0_1;
147 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VideoDecoder_0_2;
147 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_WebSocket_1_0; 148 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_WebSocket_1_0;
148 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPP_Messaging_1_0; 149 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPP_Messaging_1_0;
149 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_AudioInput_Dev_0_3; 150 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_AudioInput_Dev_0_3;
150 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_AudioInput_Dev_0_4; 151 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_AudioInput_Dev_0_4;
151 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_DeviceRef_Dev_0_1; 152 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_DeviceRef_Dev_0_1;
152 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileChooser_Dev_0_5; 153 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileChooser_Dev_0_5;
153 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileChooser_Dev_0_6; 154 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileChooser_Dev_0_6;
154 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Font_Dev_0_6; 155 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Font_Dev_0_6;
155 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_IMEInputEvent_Dev_0_1; 156 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_IMEInputEvent_Dev_0_1;
156 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_IMEInputEvent_Dev_0_2; 157 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_IMEInputEvent_Dev_0_2;
(...skipping 1806 matching lines...) Expand 10 before | Expand all | Expand 10 after
1963 return iface->Flush(video_decoder, *callback); 1964 return iface->Flush(video_decoder, *callback);
1964 } 1965 }
1965 1966
1966 static int32_t Pnacl_M36_PPB_VideoDecoder_Reset(PP_Resource video_decoder, struc t PP_CompletionCallback* callback) { 1967 static int32_t Pnacl_M36_PPB_VideoDecoder_Reset(PP_Resource video_decoder, struc t PP_CompletionCallback* callback) {
1967 const struct PPB_VideoDecoder_0_1 *iface = Pnacl_WrapperInfo_PPB_VideoDecoder_ 0_1.real_iface; 1968 const struct PPB_VideoDecoder_0_1 *iface = Pnacl_WrapperInfo_PPB_VideoDecoder_ 0_1.real_iface;
1968 return iface->Reset(video_decoder, *callback); 1969 return iface->Reset(video_decoder, *callback);
1969 } 1970 }
1970 1971
1971 /* End wrapper methods for PPB_VideoDecoder_0_1 */ 1972 /* End wrapper methods for PPB_VideoDecoder_0_1 */
1972 1973
1974 /* Begin wrapper methods for PPB_VideoDecoder_0_2 */
1975
1976 static PP_Resource Pnacl_M39_PPB_VideoDecoder_Create(PP_Instance instance) {
1977 const struct PPB_VideoDecoder_0_2 *iface = Pnacl_WrapperInfo_PPB_VideoDecoder_ 0_2.real_iface;
1978 return iface->Create(instance);
1979 }
1980
1981 static PP_Bool Pnacl_M39_PPB_VideoDecoder_IsVideoDecoder(PP_Resource resource) {
1982 const struct PPB_VideoDecoder_0_2 *iface = Pnacl_WrapperInfo_PPB_VideoDecoder_ 0_2.real_iface;
1983 return iface->IsVideoDecoder(resource);
1984 }
1985
1986 static int32_t Pnacl_M39_PPB_VideoDecoder_Initialize(PP_Resource video_decoder, PP_Resource graphics3d_context, PP_VideoProfile profile, PP_HardwareAcceleration acceleration, struct PP_CompletionCallback* callback) {
1987 const struct PPB_VideoDecoder_0_2 *iface = Pnacl_WrapperInfo_PPB_VideoDecoder_ 0_2.real_iface;
1988 return iface->Initialize(video_decoder, graphics3d_context, profile, accelerat ion, *callback);
1989 }
1990
1991 static int32_t Pnacl_M39_PPB_VideoDecoder_Decode(PP_Resource video_decoder, uint 32_t decode_id, uint32_t size, const void* buffer, struct PP_CompletionCallback* callback) {
1992 const struct PPB_VideoDecoder_0_2 *iface = Pnacl_WrapperInfo_PPB_VideoDecoder_ 0_2.real_iface;
1993 return iface->Decode(video_decoder, decode_id, size, buffer, *callback);
1994 }
1995
1996 static int32_t Pnacl_M39_PPB_VideoDecoder_GetPicture(PP_Resource video_decoder, struct PP_VideoPicture* picture, struct PP_CompletionCallback* callback) {
1997 const struct PPB_VideoDecoder_0_2 *iface = Pnacl_WrapperInfo_PPB_VideoDecoder_ 0_2.real_iface;
1998 return iface->GetPicture(video_decoder, picture, *callback);
1999 }
2000
2001 static void Pnacl_M39_PPB_VideoDecoder_RecyclePicture(PP_Resource video_decoder, const struct PP_VideoPicture* picture) {
2002 const struct PPB_VideoDecoder_0_2 *iface = Pnacl_WrapperInfo_PPB_VideoDecoder_ 0_2.real_iface;
2003 iface->RecyclePicture(video_decoder, picture);
2004 }
2005
2006 static int32_t Pnacl_M39_PPB_VideoDecoder_Flush(PP_Resource video_decoder, struc t PP_CompletionCallback* callback) {
2007 const struct PPB_VideoDecoder_0_2 *iface = Pnacl_WrapperInfo_PPB_VideoDecoder_ 0_2.real_iface;
2008 return iface->Flush(video_decoder, *callback);
2009 }
2010
2011 static int32_t Pnacl_M39_PPB_VideoDecoder_Reset(PP_Resource video_decoder, struc t PP_CompletionCallback* callback) {
2012 const struct PPB_VideoDecoder_0_2 *iface = Pnacl_WrapperInfo_PPB_VideoDecoder_ 0_2.real_iface;
2013 return iface->Reset(video_decoder, *callback);
2014 }
2015
2016 /* End wrapper methods for PPB_VideoDecoder_0_2 */
2017
1973 /* Not generating wrapper methods for PPB_VideoFrame_0_1 */ 2018 /* Not generating wrapper methods for PPB_VideoFrame_0_1 */
1974 2019
1975 /* Not generating wrapper methods for PPB_View_1_0 */ 2020 /* Not generating wrapper methods for PPB_View_1_0 */
1976 2021
1977 /* Not generating wrapper methods for PPB_View_1_1 */ 2022 /* Not generating wrapper methods for PPB_View_1_1 */
1978 2023
1979 /* Not generating wrapper methods for PPB_View_1_2 */ 2024 /* Not generating wrapper methods for PPB_View_1_2 */
1980 2025
1981 /* Begin wrapper methods for PPB_WebSocket_1_0 */ 2026 /* Begin wrapper methods for PPB_WebSocket_1_0 */
1982 2027
(...skipping 2924 matching lines...) Expand 10 before | Expand all | Expand 10 after
4907 .Create = (PP_Resource (*)(PP_Instance instance))&Pnacl_M36_PPB_VideoDecoder _Create, 4952 .Create = (PP_Resource (*)(PP_Instance instance))&Pnacl_M36_PPB_VideoDecoder _Create,
4908 .IsVideoDecoder = (PP_Bool (*)(PP_Resource resource))&Pnacl_M36_PPB_VideoDec oder_IsVideoDecoder, 4953 .IsVideoDecoder = (PP_Bool (*)(PP_Resource resource))&Pnacl_M36_PPB_VideoDec oder_IsVideoDecoder,
4909 .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, 4954 .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,
4910 .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, 4955 .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,
4911 .GetPicture = (int32_t (*)(PP_Resource video_decoder, struct PP_VideoPicture * picture, struct PP_CompletionCallback callback))&Pnacl_M36_PPB_VideoDecoder_Ge tPicture, 4956 .GetPicture = (int32_t (*)(PP_Resource video_decoder, struct PP_VideoPicture * picture, struct PP_CompletionCallback callback))&Pnacl_M36_PPB_VideoDecoder_Ge tPicture,
4912 .RecyclePicture = (void (*)(PP_Resource video_decoder, const struct PP_Video Picture* picture))&Pnacl_M36_PPB_VideoDecoder_RecyclePicture, 4957 .RecyclePicture = (void (*)(PP_Resource video_decoder, const struct PP_Video Picture* picture))&Pnacl_M36_PPB_VideoDecoder_RecyclePicture,
4913 .Flush = (int32_t (*)(PP_Resource video_decoder, struct PP_CompletionCallbac k callback))&Pnacl_M36_PPB_VideoDecoder_Flush, 4958 .Flush = (int32_t (*)(PP_Resource video_decoder, struct PP_CompletionCallbac k callback))&Pnacl_M36_PPB_VideoDecoder_Flush,
4914 .Reset = (int32_t (*)(PP_Resource video_decoder, struct PP_CompletionCallbac k callback))&Pnacl_M36_PPB_VideoDecoder_Reset 4959 .Reset = (int32_t (*)(PP_Resource video_decoder, struct PP_CompletionCallbac k callback))&Pnacl_M36_PPB_VideoDecoder_Reset
4915 }; 4960 };
4916 4961
4962 static const struct PPB_VideoDecoder_0_2 Pnacl_Wrappers_PPB_VideoDecoder_0_2 = {
4963 .Create = (PP_Resource (*)(PP_Instance instance))&Pnacl_M39_PPB_VideoDecoder _Create,
4964 .IsVideoDecoder = (PP_Bool (*)(PP_Resource resource))&Pnacl_M39_PPB_VideoDec oder_IsVideoDecoder,
4965 .Initialize = (int32_t (*)(PP_Resource video_decoder, PP_Resource graphics3d _context, PP_VideoProfile profile, PP_HardwareAcceleration acceleration, struct PP_CompletionCallback callback))&Pnacl_M39_PPB_VideoDecoder_Initialize,
4966 .Decode = (int32_t (*)(PP_Resource video_decoder, uint32_t decode_id, uint32 _t size, const void* buffer, struct PP_CompletionCallback callback))&Pnacl_M39_P PB_VideoDecoder_Decode,
4967 .GetPicture = (int32_t (*)(PP_Resource video_decoder, struct PP_VideoPicture * picture, struct PP_CompletionCallback callback))&Pnacl_M39_PPB_VideoDecoder_Ge tPicture,
4968 .RecyclePicture = (void (*)(PP_Resource video_decoder, const struct PP_Video Picture* picture))&Pnacl_M39_PPB_VideoDecoder_RecyclePicture,
4969 .Flush = (int32_t (*)(PP_Resource video_decoder, struct PP_CompletionCallbac k callback))&Pnacl_M39_PPB_VideoDecoder_Flush,
4970 .Reset = (int32_t (*)(PP_Resource video_decoder, struct PP_CompletionCallbac k callback))&Pnacl_M39_PPB_VideoDecoder_Reset
4971 };
4972
4917 /* Not generating wrapper interface for PPB_VideoFrame_0_1 */ 4973 /* Not generating wrapper interface for PPB_VideoFrame_0_1 */
4918 4974
4919 /* Not generating wrapper interface for PPB_View_1_0 */ 4975 /* Not generating wrapper interface for PPB_View_1_0 */
4920 4976
4921 /* Not generating wrapper interface for PPB_View_1_1 */ 4977 /* Not generating wrapper interface for PPB_View_1_1 */
4922 4978
4923 /* Not generating wrapper interface for PPB_View_1_2 */ 4979 /* Not generating wrapper interface for PPB_View_1_2 */
4924 4980
4925 static const struct PPB_WebSocket_1_0 Pnacl_Wrappers_PPB_WebSocket_1_0 = { 4981 static const struct PPB_WebSocket_1_0 Pnacl_Wrappers_PPB_WebSocket_1_0 = {
4926 .Create = (PP_Resource (*)(PP_Instance instance))&Pnacl_M18_PPB_WebSocket_Cr eate, 4982 .Create = (PP_Resource (*)(PP_Instance instance))&Pnacl_M18_PPB_WebSocket_Cr eate,
(...skipping 972 matching lines...) Expand 10 before | Expand all | Expand 10 after
5899 .wrapped_iface = (const void *) &Pnacl_Wrappers_PPB_VarDictionary_1_0, 5955 .wrapped_iface = (const void *) &Pnacl_Wrappers_PPB_VarDictionary_1_0,
5900 .real_iface = NULL 5956 .real_iface = NULL
5901 }; 5957 };
5902 5958
5903 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VideoDecoder_0_1 = { 5959 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VideoDecoder_0_1 = {
5904 .iface_macro = PPB_VIDEODECODER_INTERFACE_0_1, 5960 .iface_macro = PPB_VIDEODECODER_INTERFACE_0_1,
5905 .wrapped_iface = (const void *) &Pnacl_Wrappers_PPB_VideoDecoder_0_1, 5961 .wrapped_iface = (const void *) &Pnacl_Wrappers_PPB_VideoDecoder_0_1,
5906 .real_iface = NULL 5962 .real_iface = NULL
5907 }; 5963 };
5908 5964
5965 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VideoDecoder_0_2 = {
5966 .iface_macro = PPB_VIDEODECODER_INTERFACE_0_2,
5967 .wrapped_iface = (const void *) &Pnacl_Wrappers_PPB_VideoDecoder_0_2,
5968 .real_iface = NULL
5969 };
5970
5909 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_WebSocket_1_0 = { 5971 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_WebSocket_1_0 = {
5910 .iface_macro = PPB_WEBSOCKET_INTERFACE_1_0, 5972 .iface_macro = PPB_WEBSOCKET_INTERFACE_1_0,
5911 .wrapped_iface = (const void *) &Pnacl_Wrappers_PPB_WebSocket_1_0, 5973 .wrapped_iface = (const void *) &Pnacl_Wrappers_PPB_WebSocket_1_0,
5912 .real_iface = NULL 5974 .real_iface = NULL
5913 }; 5975 };
5914 5976
5915 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPP_Messaging_1_0 = { 5977 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPP_Messaging_1_0 = {
5916 .iface_macro = PPP_MESSAGING_INTERFACE_1_0, 5978 .iface_macro = PPP_MESSAGING_INTERFACE_1_0,
5917 .wrapped_iface = (const void *) &Pnacl_Wrappers_PPP_Messaging_1_0, 5979 .wrapped_iface = (const void *) &Pnacl_Wrappers_PPP_Messaging_1_0,
5918 .real_iface = NULL 5980 .real_iface = NULL
(...skipping 389 matching lines...) Expand 10 before | Expand all | Expand 10 after
6308 &Pnacl_WrapperInfo_PPB_URLLoader_1_0, 6370 &Pnacl_WrapperInfo_PPB_URLLoader_1_0,
6309 &Pnacl_WrapperInfo_PPB_URLRequestInfo_1_0, 6371 &Pnacl_WrapperInfo_PPB_URLRequestInfo_1_0,
6310 &Pnacl_WrapperInfo_PPB_URLResponseInfo_1_0, 6372 &Pnacl_WrapperInfo_PPB_URLResponseInfo_1_0,
6311 &Pnacl_WrapperInfo_PPB_Var_1_0, 6373 &Pnacl_WrapperInfo_PPB_Var_1_0,
6312 &Pnacl_WrapperInfo_PPB_Var_1_1, 6374 &Pnacl_WrapperInfo_PPB_Var_1_1,
6313 &Pnacl_WrapperInfo_PPB_Var_1_2, 6375 &Pnacl_WrapperInfo_PPB_Var_1_2,
6314 &Pnacl_WrapperInfo_PPB_VarArray_1_0, 6376 &Pnacl_WrapperInfo_PPB_VarArray_1_0,
6315 &Pnacl_WrapperInfo_PPB_VarArrayBuffer_1_0, 6377 &Pnacl_WrapperInfo_PPB_VarArrayBuffer_1_0,
6316 &Pnacl_WrapperInfo_PPB_VarDictionary_1_0, 6378 &Pnacl_WrapperInfo_PPB_VarDictionary_1_0,
6317 &Pnacl_WrapperInfo_PPB_VideoDecoder_0_1, 6379 &Pnacl_WrapperInfo_PPB_VideoDecoder_0_1,
6380 &Pnacl_WrapperInfo_PPB_VideoDecoder_0_2,
6318 &Pnacl_WrapperInfo_PPB_WebSocket_1_0, 6381 &Pnacl_WrapperInfo_PPB_WebSocket_1_0,
6319 &Pnacl_WrapperInfo_PPB_AudioInput_Dev_0_3, 6382 &Pnacl_WrapperInfo_PPB_AudioInput_Dev_0_3,
6320 &Pnacl_WrapperInfo_PPB_AudioInput_Dev_0_4, 6383 &Pnacl_WrapperInfo_PPB_AudioInput_Dev_0_4,
6321 &Pnacl_WrapperInfo_PPB_DeviceRef_Dev_0_1, 6384 &Pnacl_WrapperInfo_PPB_DeviceRef_Dev_0_1,
6322 &Pnacl_WrapperInfo_PPB_FileChooser_Dev_0_5, 6385 &Pnacl_WrapperInfo_PPB_FileChooser_Dev_0_5,
6323 &Pnacl_WrapperInfo_PPB_FileChooser_Dev_0_6, 6386 &Pnacl_WrapperInfo_PPB_FileChooser_Dev_0_6,
6324 &Pnacl_WrapperInfo_PPB_Font_Dev_0_6, 6387 &Pnacl_WrapperInfo_PPB_Font_Dev_0_6,
6325 &Pnacl_WrapperInfo_PPB_IMEInputEvent_Dev_0_1, 6388 &Pnacl_WrapperInfo_PPB_IMEInputEvent_Dev_0_1,
6326 &Pnacl_WrapperInfo_PPB_IMEInputEvent_Dev_0_2, 6389 &Pnacl_WrapperInfo_PPB_IMEInputEvent_Dev_0_2,
6327 &Pnacl_WrapperInfo_PPB_Printing_Dev_0_7, 6390 &Pnacl_WrapperInfo_PPB_Printing_Dev_0_7,
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
6443 6506
6444 /* Initialize the real_iface if it hasn't been. The wrapper depends on it. */ 6507 /* Initialize the real_iface if it hasn't been. The wrapper depends on it. */
6445 if (wrapper->real_iface == NULL) { 6508 if (wrapper->real_iface == NULL) {
6446 const void *iface = (*__real_PPPGetInterface)(name); 6509 const void *iface = (*__real_PPPGetInterface)(name);
6447 if (NULL == iface) return NULL; 6510 if (NULL == iface) return NULL;
6448 wrapper->real_iface = iface; 6511 wrapper->real_iface = iface;
6449 } 6512 }
6450 6513
6451 return wrapper->wrapped_iface; 6514 return wrapper->wrapped_iface;
6452 } 6515 }
OLDNEW
« no previous file with comments | « ppapi/examples/video_decode/video_decode.cc ('k') | ppapi/proxy/ppapi_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698