зеркало из https://github.com/mozilla/gecko-dev.git
fb97ec2e40
The displayport is aligned to screen pixels by an alignment number; there was code to increase that alignment number for the WebRender codepath. This is desirable because it causes the displayport to move less frequently, which provides better performance characteristics with WebRender. However, the way that was implemented, it was possible for the aligned displayport to not completely enclose the unaligned displayport, which could then result in perma-checkerboarding. This patch removes that code and replaces it with a simpler approach to scale up the existing alignment number by a factor based on the size of the scroller's base rect (roughly how much of the scroller is visible to the user). This does make the displayports larger, more so for scrollers with more visible area. This has negative performance implications, so we mitigate that by also scaling down the displayport margin multiplier by the same scaling factor. This isn't perfect, but seems to work well enough in practice. Differential Revision: https://phabricator.services.mozilla.com/D90503 |
||
---|---|---|
.. | ||
base | ||
build | ||
docs | ||
forms | ||
generic | ||
inspector | ||
ipc | ||
mathml | ||
media | ||
painting | ||
printing | ||
reftests | ||
style | ||
svg | ||
tables | ||
tools | ||
xul | ||
moz.build |