DescriptionMac: Enable partial swap
This is pretty trivial when using the overlay path. Just create a
new layer for the damage. The partial damage layer can be created,
removed, or resized with basically no cost, because its backing is the
already-existing IOSurface.
As each partial swap comes in, union the existing overlay layer's
rect with the rect of the new partial swap. If this grows "too big",
then do a full swap (which clears the accumulated union). The
constants here are pretty arbitrary.
BUG=474299
Committed: https://crrev.com/aae371ca10e047d9b192acf869f8ff9601d3cdf7
Cr-Commit-Position: refs/heads/master@{#342771}
Patch Set 1 #
Total comments: 10
Patch Set 2 : Incorporate review feedback #Patch Set 3 : Rebase #
Messages
Total messages: 13 (4 generated)
|