Repository navigation
Flatten display list structure - #9756
Conversation
|
☔ The latest upstream changes (presumably #9717) made this pull request unmergeable. Please resolve the merge conflicts. |
|
Review status: 0 of 27 files reviewed at latest revision, 2 unresolved discussions, some commit checks failed. components/gfx/paint_thread.rs, line 58 [r1] (raw file): Also, I'm not sure why this flag exists. Could you explain? components/gfx/paint_thread.rs, line 198 [r1] (raw file): Comments from the review on Reviewable.io |
|
Review status: 0 of 27 files reviewed at latest revision, 2 unresolved discussions, some commit checks failed. components/gfx/paint_thread.rs, line 58 [r1] (raw file): Comments from the review on Reviewable.io |
|
Ah, OK. In that case, this looks good to me modulo the surrounding comments! Rebase and I'll r+. |
|
Review status: 0 of 27 files reviewed at latest revision, 2 unresolved discussions, some commit checks failed. components/gfx/paint_thread.rs, line 58 [r1] (raw file): components/gfx/paint_thread.rs, line 198 [r1] (raw file): Comments from the review on Reviewable.io |
Instead of producing a tree of stacking contexts, display list
generation now produces a flat list of display items and a tree of
stacking contexts. This will eventually allow display list construction
to produce and modify WebRender vertex buffers directly, removing the
overhead of display list conversion. This change also moves
layerization of the display list to the paint thread, since it isn't
currently useful for WebRender.
To accomplish this, display list generation now takes three passes of
the flow tree:
1. Calculation of absolute positions.
2. Collection of a tree of stacking contexts.
3. Creation of a list of display items.
After collection of display items, they are sorted based upon the index
of their parent stacking contexts and their position in CSS 2.1
Appendeix E stacking order.
This is a big change, but it actually simplifies display list generation.
b5c6e67 to
e7019f2
Compare
|
Thanks for the review! I think I've addressed all your comments and uploaded the rebased patch. Review status: 0 of 27 files reviewed at latest revision, 2 unresolved discussions, some commit checks failed. Comments from the review on Reviewable.io |
|
@bors-servo: r+ Here we go! |
|
📌 Commit e7019f2 has been approved by |
Flatten display list structure
Instead of producing a tree of stacking contexts, display list
generation now produces a flat list of display items and a tree of
stacking contexts. This will eventually allow display list construction
to produce and modify WebRender vertex buffers directly, removing the
overhead of display list conversion. This change also moves
layerization of the display list to the paint thread, since it isn't
currently useful for WebRender.
To accomplish this, display list generation now takes three passes of
the flow tree:
1. Calculation of absolute positions.
2. Collection of a tree of stacking contexts.
3. Creation of a list of display items.
After collection of display items, they are sorted based upon the index
of their parent stacking contexts and their position in CSS 2.1
Appendeix E stacking order.
This is a big change, but it actually simplifies display list generation.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9756)
<!-- Reviewable:end -->
|
☀️ Test successful - android, gonk, linux-dev, linux-rel, mac-dev-unit, mac-rel-css, mac-rel-wpt |
|
Woohoo! Great job on this @mrobinson ! |
Instead of producing a tree of stacking contexts, display list
generation now produces a flat list of display items and a tree of
stacking contexts. This will eventually allow display list construction
to produce and modify WebRender vertex buffers directly, removing the
overhead of display list conversion. This change also moves
layerization of the display list to the paint thread, since it isn't
currently useful for WebRender.
To accomplish this, display list generation now takes three passes of
the flow tree:
After collection of display items, they are sorted based upon the index
of their parent stacking contexts and their position in CSS 2.1
Appendeix E stacking order.
This is a big change, but it actually simplifies display list generation.