Code clean-up in SwapChainPresenter
1. Remove the dead code in ReallocateSwapChain(). 2. Handling software protected video separately in GetSwapChainFormat() gets the same result. Remove it. 3. The purpose of retrying YUV format after swap chain resizing was to see if it would show a better hardware overlay promotion rate in UMA. Remove it since we didn't get a better result. It still get a chance to switch back to YUV if the majority in |presentation_history_| are overlay mode. Bug: 1117235 Change-Id: Iff2e5666d3895fefa6e5289fe92b09a56ffd82ee Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2499324Reviewed-by:Zhenyao Mo <zmo@chromium.org> Commit-Queue: Maggie Chen <magchen@chromium.org> Cr-Commit-Position: refs/heads/master@{#820820}
Showing
Please register or sign in to comment