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

Unified Diff: ppapi/cpp/dev/video_decoder_dev.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/cpp/dev/video_decoder_dev.cc
diff --git a/ppapi/cpp/dev/video_decoder_dev.cc b/ppapi/cpp/dev/video_decoder_dev.cc
index 5f8ce40ea4f64fc0388716727068a12d750e2ffd..a5994812538d913ac4261efa74928c402c50e4cf 100644
--- a/ppapi/cpp/dev/video_decoder_dev.cc
+++ b/ppapi/cpp/dev/video_decoder_dev.cc
@@ -38,13 +38,11 @@ VideoDecoder_Dev::~VideoDecoder_Dev() {
int32_t VideoDecoder_Dev::Initialize(const PP_VideoConfigElement* config,
- const Context3D_Dev& context,
- CompletionCallback callback) {
+ const Context3D_Dev& context) {
if (!has_interface<PPB_VideoDecoder_Dev>())
- return callback.MayForce(PP_ERROR_NOINTERFACE);
+ return PP_ERROR_NOINTERFACE;
return get_interface<PPB_VideoDecoder_Dev>()->Initialize(
- pp_resource(), context.pp_resource(), config,
- callback.pp_completion_callback());
+ pp_resource(), context.pp_resource(), config);
}
void VideoDecoder_Dev::AssignPictureBuffers(

Powered by Google App Engine
This is Rietveld 408576698