Skip to content

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

Merged
merged 3 commits into from
Nov 28, 2016

Conversation

mrobinson
Copy link
Member

@mrobinson mrobinson commented Nov 24, 2016

This makes it a bit less complicated to use the WebRender API and hides
some details that might change later.


This change is Reviewable

Copy link
Member

@kvark kvark left a 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))
Copy link
Member

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,
Copy link
Member

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?

Copy link
Member Author

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

@bors-servo
Copy link
Contributor

☔ The latest upstream changes (presumably #528) made this pull request unmergeable. Please resolve the merge conflicts.

@glennw
Copy link
Member

glennw commented Nov 25, 2016

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.
@mrobinson
Copy link
Member Author

@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 portion: https://github.com/mrobinson/servo/tree/display-list-builder-updates

The Servo PR is waiting on the WebRender version update in order to update the lock files. Thanks!

@mrobinson mrobinson changed the title Move AuxiliaryListsBuilder into DisplayListBuilder Simplify display list construction in the API Nov 26, 2016
@glennw
Copy link
Member

glennw commented Nov 28, 2016

@mrobinson Both the new commit and the servo PR look good to - feel free to merge this when the Servo PR is available.

@mrobinson
Copy link
Member Author

@bors-servo r=glennw

@glennw Thanks for the review!

@bors-servo
Copy link
Contributor

📌 Commit 35fd4d6 has been approved by glennw

@bors-servo
Copy link
Contributor

⌛ Testing commit 35fd4d6 with merge c4a0c01...

bors-servo pushed a commit that referenced this pull request Nov 28, 2016
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 -->
@bors-servo
Copy link
Contributor

☀️ Test successful - status-travis

@bors-servo bors-servo merged commit 35fd4d6 into servo:master Nov 28, 2016
@mrobinson mrobinson deleted the aux-list branch November 28, 2016 08:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants