DescriptionSupport swap promises that are pinned to a particular layer tree.
A pinned swap promise queued on a pending tree will only see
DidActivate() or DidNotSwap(ACTIVATION_FAILS). It is not passed
to the active tree, so it will not swap.
A pinned swap promise on the active tree will either see only
DidSwap() or DidNotSwap(SWAP_FAILS). No DidActivate() will be
seen because that has already happened prior to queueing of the
swap promise.
Conversely, an unpinned swap promise (queued by
QueueSwapPromise()) travels with the layer information currently
associated with the tree. For example, when a pending tree is
activated, the swap promise is passed to the active tree along
with the layer information. Similarly, when a new activation
overwrites layer information on the active tree, queued swap
promises are broken.
This allows us to break unpinned swap promises on the active tree
at the point at which we activate the pending tree without
changing latency measurement.
BUG=498824
CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel
Committed: https://crrev.com/2e02f73e17f4fc3f611a08582b7944bb32362a2f
Cr-Commit-Position: refs/heads/master@{#346894}
Patch Set 1 #Patch Set 2 : add missing EndArray() #
Total comments: 4
Patch Set 3 : Generalise to pinned promises, improve comments, add unittest. #Patch Set 4 : Fix Windows compilation #
Total comments: 4
Patch Set 5 : address comments #Patch Set 6 : remove DidNotSwapReasonToString #Patch Set 7 : Add unittest for surface layer swap promise resolution when activations occur but swaps do not. #
Total comments: 14
Patch Set 8 : address comments #Patch Set 9 : Remove the concept of pinned promises on the pending tree. DCHECK if one is created. #
Total comments: 4
Patch Set 10 : Update comment, remove extraneous braces. #Patch Set 11 : Use different return value for failed draw in test, to avoid NOTREACHED() #
Messages
Total messages: 35 (8 generated)
|