mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-22 09:45:41 +00:00
7db1aac145
Rather than treating webrender::intern::UpdateList as a sequence of operations, each of which might be an insertion or a removal, and using a side table to supply extra data for insertions, it's simpler to segregate insertions and removals into two separate vectors. This avoids the need for an enum whose discriminant needs to be checked within the loop, and allows a few loops that are only looking for one kind of operation to skip over the others entirely. Ultimately, there should be no change in the order in which operations occur. In practice, the old UpdateList always held a contiguous run of insertions, followed by a run of removals (removals are consumed by apply_updates directly after being generated by end_frame_and_get_pending_updates). Differential Revision: https://phabricator.services.mozilla.com/D64444 --HG-- extra : moz-landing-system : lando |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |