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

Unified Diff: ppapi/cpp/video_writer.cc

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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ppapi/cpp/video_writer.h ('k') | ppapi/native_client/src/untrusted/pnacl_irt_shim/pnacl_shim.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/cpp/video_writer.cc
diff --git a/ppapi/cpp/video_writer.cc b/ppapi/cpp/video_writer.cc
index d133cd61927565a397d6811f92ee369e056ea53d..372bfad3121ce8615559a285993273ebb07cfcd4 100644
--- a/ppapi/cpp/video_writer.cc
+++ b/ppapi/cpp/video_writer.cc
@@ -42,14 +42,12 @@ VideoWriter::VideoWriter(PassRef, PP_Resource resource)
: Resource(PASS_REF, resource) {
}
-int32_t VideoWriter::Open(const std::string& stream_id,
- const CompletionCallback& cc) {
+int32_t VideoWriter::Open(const CompletionCallbackWithOutput<Var>& cc) {
if (has_interface<PPB_VideoWriter_0_1>()) {
- Var id(stream_id);
int32_t result =
get_interface<PPB_VideoWriter_0_1>()->Open(
pp_resource(),
- id.pp_var(), cc.pp_completion_callback());
+ cc.output(), cc.pp_completion_callback());
return result;
}
return cc.MayForce(PP_ERROR_NOINTERFACE);
« no previous file with comments | « ppapi/cpp/video_writer.h ('k') | ppapi/native_client/src/untrusted/pnacl_irt_shim/pnacl_shim.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698