[go: nahoru, domu]

media/gpu/VP9Decoder: Set frame size to visible size if it is larger than frame size

VP9Decoder sets visible rectangle to empty if the visible
rectangle obtained from vp9 stream is larger than the frame size.
This causes a regression since M81 because we begin to set
GLImage's dimension to visible size, crrev.com/c/2011583.

This fixes the regression by setting visible rectangle to frame
size in the case.

Bug: b:149727823
Test: HW decoder is used on atlas for VP9 SVC in Meet
Change-Id: Icb47fc99899be3ebde349d6e6005bc8e5a6328a1
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2076224
Reviewed-by: Andres Calderon Jaramillo <andrescj@chromium.org>
Commit-Queue: Hirokazu Honda <hiroh@chromium.org>
Cr-Commit-Position: refs/heads/master@{#745346}
1 file changed