viz: Limit scaling on required overlays
There are downscaling limitations on overlays. When we have reached this limit, rather than failing to promote to an overlay, we clip the content so that the scale factor is within the allowed range. This is more visually appealing than blacking out the quad instead. When doing this we track the range of the max value that worked and the min value that failed. When we first hit a failure, we iteratively increase the value until we have success to find the initial lower bound. Subsequent tests will almost always hit on the first retry. BUG=b:155511837,b:174174828 TEST=Protected content renders w/ clipping when downscaled too much Change-Id: Icf294de47e396fd760f77e9d93b18894c275a1af Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2622762Reviewed-by:Daniele Castagna <dcastagna@chromium.org> Commit-Queue: Jeffrey Kardatzke <jkardatzke@google.com> Cr-Commit-Position: refs/heads/master@{#843245}
Showing
Please register or sign in to comment