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

Unified Diff: ppapi/thunk/ppb_video_decoder_thunk.cc

Issue 7474006: PPB_VideoDecoder_Dev::Initialize is now synchronous! (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 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 side-by-side diff with in-line comments
Download patch
Index: ppapi/thunk/ppb_video_decoder_thunk.cc
diff --git a/ppapi/thunk/ppb_video_decoder_thunk.cc b/ppapi/thunk/ppb_video_decoder_thunk.cc
index f1b7c44926169646e37d8430c5aceb38e548f6f6..50b8d2429fe06cf92cd7d0c730d991534d12a282 100644
--- a/ppapi/thunk/ppb_video_decoder_thunk.cc
+++ b/ppapi/thunk/ppb_video_decoder_thunk.cc
@@ -30,14 +30,11 @@ PP_Bool IsVideoDecoder(PP_Resource resource) {
int32_t Initialize(PP_Resource video_decoder,
PP_Resource context_id,
- const PP_VideoConfigElement* decoder_config,
- PP_CompletionCallback callback) {
+ const PP_VideoConfigElement* decoder_config) {
EnterVideoDecoder enter(video_decoder, true);
if (enter.failed())
- return MayForceCallback(callback, PP_ERROR_BADRESOURCE);
- int32_t result =
- enter.object()->Initialize(context_id, decoder_config, callback);
- return MayForceCallback(callback, result);
+ return PP_ERROR_BADRESOURCE;
+ return enter.object()->Initialize(context_id, decoder_config);
}
int32_t Decode(PP_Resource video_decoder,

Powered by Google App Engine
This is Rietveld 408576698