Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upReduce size of spatial node index #3438
Conversation
|
@gw3583 would you care to review this one too? |
168cc14
to
4d0b3bf
zptan
commented
Dec 21, 2018
•
| } | ||
| } | ||
|
|
||
| unsafe impl Send for SpatialNodeIndex {} |
This comment has been minimized.
This comment has been minimized.
|
This really does much more than just "Reduce size of spatial node index", introducing the
webrender/src/clip_scroll_tree.rs, line 52 at r1 (raw file):
nit: webrender/src/clip_scroll_tree.rs, line 61 at r1 (raw file): Previously, emilio (Emilio Cobos Álvarez) wrote…
agreed, this shouldn't need any unsafe impls webrender/src/gpu_types.rs, line 473 at r1 (raw file):
perhaps, use webrender/src/gpu_types.rs, line 648 at r1 (raw file):
nit: webrender/src/index_vec.rs, line 31 at r1 (raw file):
I'm not convinced this is a helpful abstraction. It carries almost zero logic in itself. WR has used u32 indices (newtyped for safety) for a lot of stuff, and that hasn't been a problem (i.e. not a burden to write, and not a source of mistakes). |
|
|
|
I've re-written the patch to not use type safe index nor the |
|
@bors-servo r+ |
|
|
Reduce size of spatial node index Fixes #3431. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/webrender/3438) <!-- Reviewable:end -->
|
|
…caa408adcfcb (WR PR #3438). r=kats servo/webrender#3438 Differential Revision: https://phabricator.services.mozilla.com/D15648 --HG-- extra : moz-landing-system : lando
…caa408adcfcb (WR PR #3438). r=kats servo/webrender#3438 Differential Revision: https://phabricator.services.mozilla.com/D15648
…caa408adcfcb (WR PR #3438). r=kats servo/webrender#3438 Differential Revision: https://phabricator.services.mozilla.com/D15648 UltraBlame original commit: 094763412dbf5de18f04c0e37af9a9679b16c73b
…caa408adcfcb (WR PR #3438). r=kats servo/webrender#3438 Differential Revision: https://phabricator.services.mozilla.com/D15648 UltraBlame original commit: 094763412dbf5de18f04c0e37af9a9679b16c73b
…caa408adcfcb (WR PR #3438). r=kats servo/webrender#3438 Differential Revision: https://phabricator.services.mozilla.com/D15648 UltraBlame original commit: 094763412dbf5de18f04c0e37af9a9679b16c73b
djg commentedDec 19, 2018
•
edited by larsbergstrom
Fixes #3431.
This change is