• enne's avatar
    cc: Fix missing render surfaces with output requests · b723b4e2
    enne authored
    The main thread calculates needed render surfaces, but doesn't have all
    of the information that it needs.  In particular, it may not know that
    one of its twin layers on the pending or active tree still has an
    unserviced copy output request that will live through the commit and
    activation, and thus that twin will still need a render surface.
    
    As render surface calculations will probably move to the compositor
    thread, rather than adding in complicated tracking and counting of
    outstanding copy requests to Layer and request callbacks, instead
    just add some logic to check if there are remaining copy output requests
    during commit and activation and take that into consideration when
    setting the output surface.
    
    This also reverts commit 1e447ad6,
    which was clearly legit as it caught this mistake.
    
    BUG=457217
    
    Review URL: https://codereview.chromium.org/935193002
    
    Cr-Commit-Position: refs/heads/master@{#317107}
    b723b4e2
layer_impl.cc 50.6 KB