Skip to content
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

Add ClipStore struct, and use flat vec for clip sources. #2937

Merged
merged 1 commit into from Jul 30, 2018

Conversation

@gw3583
Copy link
Collaborator

gw3583 commented Jul 30, 2018

We previously used a free list for clip sources, since it was
possible to add/remove clip sources lists within a single
display list. That's no longer used, so switch to a flat vec
which is a bit simpler and slightly more efficient.

Add a ClipStore struct. This currently holds clip sources only,
but as we start to support clip chains in different coordinate
systems, we'll move the clip chains from the CST to live here.


This change is Reviewable

We previously used a free list for clip sources, since it was
possible to add/remove clip sources lists within a single
display list. That's no longer used, so switch to a flat vec
which is a bit simpler and slightly more efficient.

Add a ClipStore struct. This currently holds clip sources only,
but as we start to support clip chains in different coordinate
systems, we'll move the clip chains from the CST to live here.
@gw3583
Copy link
Collaborator Author

gw3583 commented Jul 30, 2018

r? @kvark

@kvark
kvark approved these changes Jul 30, 2018
@kvark
Copy link
Member

kvark commented Jul 30, 2018

@bors-servo
Copy link
Contributor

bors-servo commented Jul 30, 2018

📌 Commit e46934f has been approved by kvark

@bors-servo
Copy link
Contributor

bors-servo commented Jul 30, 2018

Testing commit e46934f with merge 8a4fe66...

bors-servo added a commit that referenced this pull request Jul 30, 2018
Add ClipStore struct, and use flat vec for clip sources.

We previously used a free list for clip sources, since it was
possible to add/remove clip sources lists within a single
display list. That's no longer used, so switch to a flat vec
which is a bit simpler and slightly more efficient.

Add a ClipStore struct. This currently holds clip sources only,
but as we start to support clip chains in different coordinate
systems, we'll move the clip chains from the CST to live here.

<!-- 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/2937)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

bors-servo commented Jul 30, 2018

☀️ Test successful - status-appveyor, status-taskcluster
Approved by: kvark
Pushing 8a4fe66 to master...

@bors-servo bors-servo merged commit e46934f into servo:master Jul 30, 2018
3 checks passed
3 checks passed
Taskcluster (pull_request) TaskGroup: success
Details
continuous-integration/appveyor/pr AppVeyor build succeeded
Details
homu Test successful
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

3 participants
You can’t perform that action at this time.