• Maggie Chen's avatar
    Code clean-up in SwapChainPresenter · 2a2b64e4
    Maggie Chen authored
    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: default avatarZhenyao Mo <zmo@chromium.org>
    Commit-Queue: Maggie Chen <magchen@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#820820}
    2a2b64e4
swap_chain_presenter.h 9.58 KB