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

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

Issue 13726021: Change PPB_VideoWriter Open function to return stream_id as out param. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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
« no previous file with comments | « ppapi/cpp/video_writer.cc ('k') | no next file » | 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) 2013 The Chromium Authors. All rights reserved. 1 /* Copyright (c) 2013 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/generators/pnacl_shim.h" 7 #include "ppapi/generators/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 1233 matching lines...) Expand 10 before | Expand all | Expand 10 after
1244 return iface->Create(instance); 1244 return iface->Create(instance);
1245 } 1245 }
1246 1246
1247 static __attribute__((pnaclcall)) 1247 static __attribute__((pnaclcall))
1248 PP_Bool Pnacl_M28_PPB_VideoWriter_IsVideoWriter(PP_Resource resource) { 1248 PP_Bool Pnacl_M28_PPB_VideoWriter_IsVideoWriter(PP_Resource resource) {
1249 const struct PPB_VideoWriter_0_1 *iface = Pnacl_WrapperInfo_PPB_VideoWriter_0_ 1.real_iface; 1249 const struct PPB_VideoWriter_0_1 *iface = Pnacl_WrapperInfo_PPB_VideoWriter_0_ 1.real_iface;
1250 return iface->IsVideoWriter(resource); 1250 return iface->IsVideoWriter(resource);
1251 } 1251 }
1252 1252
1253 static __attribute__((pnaclcall)) 1253 static __attribute__((pnaclcall))
1254 int32_t Pnacl_M28_PPB_VideoWriter_Open(PP_Resource writer, struct PP_Var stream_ id, struct PP_CompletionCallback callback) { 1254 int32_t Pnacl_M28_PPB_VideoWriter_Open(PP_Resource writer, struct PP_Var* stream _id, struct PP_CompletionCallback callback) {
1255 const struct PPB_VideoWriter_0_1 *iface = Pnacl_WrapperInfo_PPB_VideoWriter_0_ 1.real_iface; 1255 const struct PPB_VideoWriter_0_1 *iface = Pnacl_WrapperInfo_PPB_VideoWriter_0_ 1.real_iface;
1256 return iface->Open(writer, stream_id, callback); 1256 return iface->Open(writer, stream_id, callback);
1257 } 1257 }
1258 1258
1259 static __attribute__((pnaclcall)) 1259 static __attribute__((pnaclcall))
1260 int32_t Pnacl_M28_PPB_VideoWriter_PutFrame(PP_Resource writer, const struct PP_V ideoFrame* frame) { 1260 int32_t Pnacl_M28_PPB_VideoWriter_PutFrame(PP_Resource writer, const struct PP_V ideoFrame* frame) {
1261 const struct PPB_VideoWriter_0_1 *iface = Pnacl_WrapperInfo_PPB_VideoWriter_0_ 1.real_iface; 1261 const struct PPB_VideoWriter_0_1 *iface = Pnacl_WrapperInfo_PPB_VideoWriter_0_ 1.real_iface;
1262 return iface->PutFrame(writer, frame); 1262 return iface->PutFrame(writer, frame);
1263 } 1263 }
1264 1264
(...skipping 2907 matching lines...) Expand 10 before | Expand all | Expand 10 after
4172 .Create = (PP_Resource (*)(PP_Instance instance))&Pnacl_M28_PPB_VideoReader_ Create, 4172 .Create = (PP_Resource (*)(PP_Instance instance))&Pnacl_M28_PPB_VideoReader_ Create,
4173 .IsVideoReader = (PP_Bool (*)(PP_Resource resource))&Pnacl_M28_PPB_VideoRead er_IsVideoReader, 4173 .IsVideoReader = (PP_Bool (*)(PP_Resource resource))&Pnacl_M28_PPB_VideoRead er_IsVideoReader,
4174 .Open = (int32_t (*)(PP_Resource reader, struct PP_Var stream_id, struct PP_ CompletionCallback callback))&Pnacl_M28_PPB_VideoReader_Open, 4174 .Open = (int32_t (*)(PP_Resource reader, struct PP_Var stream_id, struct PP_ CompletionCallback callback))&Pnacl_M28_PPB_VideoReader_Open,
4175 .GetFrame = (int32_t (*)(PP_Resource reader, struct PP_VideoFrame* frame, st ruct PP_CompletionCallback callback))&Pnacl_M28_PPB_VideoReader_GetFrame, 4175 .GetFrame = (int32_t (*)(PP_Resource reader, struct PP_VideoFrame* frame, st ruct PP_CompletionCallback callback))&Pnacl_M28_PPB_VideoReader_GetFrame,
4176 .Close = (void (*)(PP_Resource reader))&Pnacl_M28_PPB_VideoReader_Close 4176 .Close = (void (*)(PP_Resource reader))&Pnacl_M28_PPB_VideoReader_Close
4177 }; 4177 };
4178 4178
4179 struct PPB_VideoWriter_0_1 Pnacl_Wrappers_PPB_VideoWriter_0_1 = { 4179 struct PPB_VideoWriter_0_1 Pnacl_Wrappers_PPB_VideoWriter_0_1 = {
4180 .Create = (PP_Resource (*)(PP_Instance instance))&Pnacl_M28_PPB_VideoWriter_ Create, 4180 .Create = (PP_Resource (*)(PP_Instance instance))&Pnacl_M28_PPB_VideoWriter_ Create,
4181 .IsVideoWriter = (PP_Bool (*)(PP_Resource resource))&Pnacl_M28_PPB_VideoWrit er_IsVideoWriter, 4181 .IsVideoWriter = (PP_Bool (*)(PP_Resource resource))&Pnacl_M28_PPB_VideoWrit er_IsVideoWriter,
4182 .Open = (int32_t (*)(PP_Resource writer, struct PP_Var stream_id, struct PP_ CompletionCallback callback))&Pnacl_M28_PPB_VideoWriter_Open, 4182 .Open = (int32_t (*)(PP_Resource writer, struct PP_Var* stream_id, struct PP _CompletionCallback callback))&Pnacl_M28_PPB_VideoWriter_Open,
4183 .PutFrame = (int32_t (*)(PP_Resource writer, const struct PP_VideoFrame* fra me))&Pnacl_M28_PPB_VideoWriter_PutFrame, 4183 .PutFrame = (int32_t (*)(PP_Resource writer, const struct PP_VideoFrame* fra me))&Pnacl_M28_PPB_VideoWriter_PutFrame,
4184 .Close = (void (*)(PP_Resource writer))&Pnacl_M28_PPB_VideoWriter_Close 4184 .Close = (void (*)(PP_Resource writer))&Pnacl_M28_PPB_VideoWriter_Close
4185 }; 4185 };
4186 4186
4187 /* Not generating wrapper interface for PPB_View_1_0 */ 4187 /* Not generating wrapper interface for PPB_View_1_0 */
4188 4188
4189 struct PPB_WebSocket_1_0 Pnacl_Wrappers_PPB_WebSocket_1_0 = { 4189 struct PPB_WebSocket_1_0 Pnacl_Wrappers_PPB_WebSocket_1_0 = {
4190 .Create = (PP_Resource (*)(PP_Instance instance))&Pnacl_M18_PPB_WebSocket_Cr eate, 4190 .Create = (PP_Resource (*)(PP_Instance instance))&Pnacl_M18_PPB_WebSocket_Cr eate,
4191 .IsWebSocket = (PP_Bool (*)(PP_Resource resource))&Pnacl_M18_PPB_WebSocket_I sWebSocket, 4191 .IsWebSocket = (PP_Bool (*)(PP_Resource resource))&Pnacl_M18_PPB_WebSocket_I sWebSocket,
4192 .Connect = (int32_t (*)(PP_Resource web_socket, struct PP_Var url, const str uct PP_Var protocols[], uint32_t protocol_count, struct PP_CompletionCallback ca llback))&Pnacl_M18_PPB_WebSocket_Connect, 4192 .Connect = (int32_t (*)(PP_Resource web_socket, struct PP_Var url, const str uct PP_Var protocols[], uint32_t protocol_count, struct PP_CompletionCallback ca llback))&Pnacl_M18_PPB_WebSocket_Connect,
(...skipping 1766 matching lines...) Expand 10 before | Expand all | Expand 10 after
5959 } 5959 }
5960 5960
5961 if (wrapper->wrapped_iface) { 5961 if (wrapper->wrapped_iface) {
5962 return wrapper->wrapped_iface; 5962 return wrapper->wrapped_iface;
5963 } else { 5963 } else {
5964 return wrapper->real_iface; 5964 return wrapper->real_iface;
5965 } 5965 }
5966 } 5966 }
5967 5967
5968 #endif 5968 #endif
OLDNEW
« no previous file with comments | « ppapi/cpp/video_writer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698