-
Notifications
You must be signed in to change notification settings - Fork 290
Simplify display list construction in the API #592
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome change!
vec![complex], | ||
Some(mask), | ||
&mut auxiliary_lists_builder) | ||
builder.new_clip_region(&bounds, vec![complex], Some(mask)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that looks much nicer
@@ -47,13 +48,15 @@ impl BuiltDisplayList { | |||
pub struct DisplayListBuilder { | |||
pub mode: DisplayListMode, | |||
pub list: Vec<DisplayItem>, | |||
pub auxiliary_lists_builder: AuxiliaryListsBuilder, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
does it need to be public?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nope! I will fix this
☔ The latest upstream changes (presumably #528) made this pull request unmergeable. Please resolve the merge conflicts. |
r=me when rebased and servo patch is ready |
This makes it a bit less complicated to use the WebRender API and hides some details that might change later. Fixes servo#574.
Bookkeeping for pipeline_id and the current scroll layer id is logic that is shared among all clients. We can just move this into DisplayListBuilder.
@glennw I have added a new commit to this PR. Do you mind taking a look at it and reviewing again? The new commit: 5be4382 The Servo PR is waiting on the WebRender version update in order to update the lock files. Thanks! |
@mrobinson Both the new commit and the servo PR look good to - feel free to merge this when the Servo PR is available. |
@bors-servo r=glennw @glennw Thanks for the review! |
📌 Commit 35fd4d6 has been approved by |
Simplify display list construction in the API This makes it a bit less complicated to use the WebRender API and hides some details that might change later. <!-- 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/592) <!-- Reviewable:end -->
☀️ Test successful - status-travis |
This makes it a bit less complicated to use the WebRender API and hides
some details that might change later.
This change is