Index: content/renderer/pepper/pepper_video_decoder_host.cc |
diff --git a/content/renderer/pepper/pepper_video_decoder_host.cc b/content/renderer/pepper/pepper_video_decoder_host.cc |
index 24becb5151442b7048b24262a4d88b5eba20e887..c7cbfd6d1cabacde15c0dc8a9f6c5e042e82347d 100644 |
--- a/content/renderer/pepper/pepper_video_decoder_host.cc |
+++ b/content/renderer/pepper/pepper_video_decoder_host.cc |
@@ -113,7 +113,8 @@ int32_t PepperVideoDecoderHost::OnHostMsgInitialize( |
ppapi::host::HostMessageContext* context, |
const ppapi::HostResource& graphics_context, |
PP_VideoProfile profile, |
- PP_HardwareAcceleration acceleration) { |
+ PP_HardwareAcceleration acceleration, |
+ uint32_t min_picture_count) { |
if (initialized_) |
return PP_ERROR_FAILED; |
@@ -136,7 +137,8 @@ int32_t PepperVideoDecoderHost::OnHostMsgInitialize( |
GpuChannelHost* channel = graphics3d->channel(); |
DCHECK(channel); |
decoder_ = channel->CreateVideoDecoder(command_buffer_route_id); |
- if (decoder_ && decoder_->Initialize(media_profile, this)) { |
+ if (decoder_ && |
+ decoder_->Initialize(media_profile, min_picture_count, this)) { |
initialized_ = true; |
return PP_OK; |
} |
@@ -150,7 +152,7 @@ int32_t PepperVideoDecoderHost::OnHostMsgInitialize( |
#else |
decoder_.reset(new VideoDecoderShim(this)); |
initialize_reply_context_ = context->MakeReplyMessageContext(); |
- decoder_->Initialize(media_profile, this); |
+ decoder_->Initialize(media_profile, min_picture_count, this); |
return PP_OK_COMPLETIONPENDING; |
#endif |