Prevent frequent overlay swapchain recreation in Windows
When there is a new swapchain size request, don't recreate a new swapchain immediately. Instead, use the previous swapchain size until the the new size has been requested for 30 frames. Then create a new swapchain with the new size. We can achieve the same onscreen video size by adding this size delta to the transform matrix calculation. Bug:885182 Cq-Include-Trybots: luci.chromium.try:android_optional_gpu_tests_rel;luci.chromium.try:linux_optional_gpu_tests_rel;luci.chromium.try:mac_optional_gpu_tests_rel;luci.chromium.try:win_optional_gpu_tests_rel Change-Id: I846b8bcb0753a9bd9ccce8329354dc55decc1481 Reviewed-on: https://chromium-review.googlesource.com/c/1235316Reviewed-by:Zhenyao Mo <zmo@chromium.org> Reviewed-by:
Sunny Sachanandani <sunnyps@chromium.org> Commit-Queue: Maggie Chen <magchen@chromium.org> Cr-Commit-Position: refs/heads/master@{#596463}
Showing
Please register or sign in to comment