Descriptioncc: Fix missing render surfaces with output requests
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 1e447ad6426b03803cf6cf091ffc8edede265e71,
which was clearly legit as it caught this mistake.
BUG=457217
Committed: https://crrev.com/b723b4e24b5160aee2db354084b7ccc6a709fbec
Cr-Commit-Position: refs/heads/master@{#317107}
Patch Set 1 #
Total comments: 4
Patch Set 2 : Remove asserts #
Messages
Total messages: 14 (5 generated)
|