Commit fc90ea5d authored by Alexandre Courbot's avatar Alexandre Courbot Committed by Commit Bot

media/gpu/v4l2sdva: request picture buffers of the GL size

Requested picture buffers should be about the buffers we will output,
i.e. the GL buffers, which are not necessarily the ones used by the
decoder (if we use an IP). Fix this mistake in CreateOutputBuffers().

Bug: None
Test: VDA unittest passes on Minnie.

Change-Id: Icf76f6c96ff54d881783509722193f299f9bff2a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1768476
Auto-Submit: Alexandre Courbot <acourbot@chromium.org>
Commit-Queue: Hirokazu Honda <hiroh@chromium.org>
Reviewed-by: default avatarHirokazu Honda <hiroh@chromium.org>
Cr-Commit-Position: refs/heads/master@{#690220}
parent c7e1b9e2
......@@ -584,7 +584,7 @@ bool V4L2SliceVideoDecodeAccelerator::CreateOutputBuffers() {
FROM_HERE,
base::BindOnce(
&VideoDecodeAccelerator::Client::ProvidePictureBuffersWithVisibleRect,
client_, num_pictures, pixel_format, 1, coded_size_,
client_, num_pictures, pixel_format, 1, gl_image_size_,
decoder_->GetVisibleRect(), device_->GetTextureTarget()));
// Go into kAwaitingPictureBuffers to prevent us from doing any more decoding
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment