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

Unified Diff: content/common/gpu/client/gpu_video_decode_accelerator_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/common/gpu/client/gpu_video_decode_accelerator_host.cc
diff --git a/content/common/gpu/client/gpu_video_decode_accelerator_host.cc b/content/common/gpu/client/gpu_video_decode_accelerator_host.cc
index 86894bcde069ca6ead084dd5981d6a2f08253190..0d82430d5d52de03e7ee990ffab7a81edb055fee 100644
--- a/content/common/gpu/client/gpu_video_decode_accelerator_host.cc
+++ b/content/common/gpu/client/gpu_video_decode_accelerator_host.cc
@@ -80,6 +80,7 @@ void GpuVideoDecodeAcceleratorHost::OnChannelError() {
}
bool GpuVideoDecodeAcceleratorHost::Initialize(media::VideoCodecProfile profile,
+ uint32 min_picture_count,
Client* client) {
DCHECK(CalledOnValidThread());
client_ = client;
@@ -92,7 +93,7 @@ bool GpuVideoDecodeAcceleratorHost::Initialize(media::VideoCodecProfile profile,
bool succeeded = false;
Send(new GpuCommandBufferMsg_CreateVideoDecoder(
- impl_->GetRouteID(), profile, route_id, &succeeded));
+ impl_->GetRouteID(), profile, min_picture_count, route_id, &succeeded));
if (!succeeded) {
DLOG(ERROR) << "Send(GpuCommandBufferMsg_CreateVideoDecoder()) failed";

Powered by Google App Engine
This is Rietveld 408576698