Descriptioncc: Make full-pile invalidations cheap.
A PicturePile can be really huge. Normally invalidations should be
relatively small anyways. But some times we have to SetNeedsDisplay()
to invalidate the whole layer. We can make these cases fast by only
iterating through the hash_map to find the recorded tiles that exist
and invalidate them.
This takes the record time for a 20 million squared layer from over a
minute to under a millisecond.
R=enne, vmpstr
BUG=420944
Committed: https://crrev.com/3813b916c2dfb95440b1501db7ef5a880b8a49f0
Cr-Commit-Position: refs/heads/master@{#299520}
Patch Set 1 #
Total comments: 3
Patch Set 2 : fullinvalidation: . #Patch Set 3 : fullinvalidation: rebase #Patch Set 4 : fullinvalidation: dontcommentoutthings #
Messages
Total messages: 11 (1 generated)
|