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 upAssign all ClipIds during display list construction #2402
Conversation
|
Reviewed 6 of 6 files at r1. webrender_api/src/display_item.rs, line 763 at r1 (raw file):
can we define it as a constant? webrender_api/src/display_list.rs, line 812 at r1 (raw file):
start at webrender_api/src/display_list.rs, line 1316 at r1 (raw file):
to clarify, we aren't checking for axis alignment here because an animated transform always spawns a reference frame, right? Comments from Reviewable |
a676978
to
6870c17
|
Review status: 4 of 6 files reviewed at latest revision, 3 unresolved discussions. webrender_api/src/display_item.rs, line 763 at r1 (raw file): Previously, kvark (Dzmitry Malyshau) wrote…
Done. webrender_api/src/display_list.rs, line 812 at r1 (raw file): Previously, kvark (Dzmitry Malyshau) wrote…
Heh. This was supposed to be a '2'. Fixed. :) webrender_api/src/display_list.rs, line 1316 at r1 (raw file): Previously, kvark (Dzmitry Malyshau) wrote…
That's correct. The spec dictates that even an identity transform creates a stacking context. Comments from Reviewable |
|
Reviewed 2 of 2 files at r2. webrender_api/src/display_list.rs, line 814 at r2 (raw file):
can we move it up next to the rest of the constants? Comments from Reviewable |
This change makes it so that all ClipIds are assigned during display list construction. This will allow us to count the number of ClipIds in each display list during construction, making it possible to more easily map them onto simple array indices. The final goal of this work is to eliminate the performance cost of hashing when flattening and rendering display lists.
6870c17
to
1e030a2
|
Review status: 5 of 6 files reviewed at latest revision, 1 unresolved discussion. webrender_api/src/display_list.rs, line 814 at r2 (raw file): Previously, kvark (Dzmitry Malyshau) wrote…
Done. Comments from Reviewable |
|
Reviewed 1 of 1 files at r3. Comments from Reviewable |
|
@bors-servo r+ |
|
|
Assign all ClipIds during display list construction This change makes it so that all ClipIds are assigned during display list construction. This will allow us to count the number of ClipIds in each display list during construction, making it possible to more easily map them onto simple array indices. The final goal of this work is to eliminate the performance cost of hashing when flattening and rendering display lists. <!-- 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/2402) <!-- Reviewable:end -->
|
|
mrobinson commentedFeb 9, 2018
•
edited by larsbergstrom
This change makes it so that all ClipIds are assigned during display
list construction. This will allow us to count the number of ClipIds in
each display list during construction, making it possible to more easily
map them onto simple array indices. The final goal of this work is to
eliminate the performance cost of hashing when flattening and rendering
display lists.
This change is