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

Unified Diff: content/renderer/pepper/pepper_video_decoder_host.cc

Issue 1207043002: Introduce a client minimum picture pool size (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 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: 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

Powered by Google App Engine
This is Rietveld 408576698