DescriptionImprove performance when calling PaintLayer::setNeedsRepaint()
Previously we call enclosingLayer()->setNeedsRepaint(), but
enclosingLayer() needs to walk the tree up to find the layer.
Now save enclosing layer in PaintInvalidationState, so that we
can get it directly during paint invalidation.
If not during paint invaidation:
- for invalidatePaintIncludingNonCompositingDescendants() and
invalidateDisplayItemClientsIncludingNonCompositingDescendants(),
just call setNeedsRepaint() for all layers encountered during
tree traversal;
- others still use enclosingLayer()->setNeedsRepaint().
Committed: https://crrev.com/d66c377a43c54efa09cc2b4e90dab452d3f9dfdc
Cr-Commit-Position: refs/heads/master@{#370313}
Patch Set 1 #Patch Set 2 : #
Total comments: 5
Patch Set 3 : #Patch Set 4 : Rebase #Patch Set 5 : #Patch Set 6 : #
Dependent Patchsets: Messages
Total messages: 35 (15 generated)
|