Descriptioncc: Make DamageTracker use the effect tree and layer list
This makes DamageTracker use the effect tree and layer list rather than
traversing the render surface layer list.
The ordering requirements that we need to maintain are:
1) Each render surface's damage must be computed before its target's
damage can be computed.
2) When accumulating the damage for a render surface, contributing
layers and surfaces must be visited in draw order, since a
contributing surface with a background filter expands damage from
contributors behind it (before it in draw order) but not from
contributors after it.
We do this by visiting the top-level layer list in draw order, adding
the damage for each layer to its target's accumulated damage. Whenever
all of a surface's contributors have been visited (this can be determined
using the effect tree and each layer's effect tree index), the surface's
damage is computed and then added to its own target's accumulated damage.
BUG=611883
CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel
Review-Url: https://codereview.chromium.org/2814273003
Cr-Commit-Position: refs/heads/master@{#465339}
Committed: https://chromium.googlesource.com/chromium/src/+/9c92fa02ca4c58cf5338ac0c7d59cdd3cf22ed13
Patch Set 1 #Patch Set 2 : Rebase #
Messages
Total messages: 19 (15 generated)
|