gpu: Create swap chain with tearing support
Without this the 2D canvas demo https://codepen.io/miguelao/full/ZjJNNw janks a lot since it enqueues too many presents which introduce implicit synchronization without the DXGI_PRESENT_ALLOW_TEARING flag. This moves the swap chain tearing feature detection to a central place, and makes shared image swap chain dependent on swap chain tearing. Bug: 939657, 939659 Change-Id: Ic8a423a4e2742056dcbb8d3d4af473180e246a58 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1750199 Commit-Queue: Sunny Sachanandani <sunnyps@chromium.org> Reviewed-by:Kenneth Russell <kbr@chromium.org> Cr-Commit-Position: refs/heads/master@{#686665}
Showing
Please register or sign in to comment