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

Remove complex radial gradient API #2548

Merged

Conversation

@mrobinson
Copy link
Member

mrobinson commented Mar 20, 2018

Instead of allowing complex radial gradients, denormalize the stops
array when serializing display lists to YAML. We also store start and
end offset instead of start and end radius. This allows us to
denormalize the stops array in a more straight-forward way. This opens
up more opportunities for optimizing the radial gradient shader.

Fixes #2439.


This change is Reviewable

Instead of allowing complex radial gradients, denormalize the stops
array when serializing display lists to YAML. We also store start and
end offset instead of start and end radius. This allows us to
denormalize the stops array in a more straight-forward way. This opens
up more opportunities for optimizing the radial gradient shader.

Fixes #2439.
@mrobinson mrobinson requested a review from glennw Mar 20, 2018
@mrobinson
Copy link
Member Author

mrobinson commented Mar 20, 2018

@glennw
glennw approved these changes Mar 20, 2018
@glennw
Copy link
Member

glennw commented Mar 20, 2018

@bors-servo
Copy link
Contributor

bors-servo commented Mar 20, 2018

📌 Commit e3798c4 has been approved by glennw

@bors-servo
Copy link
Contributor

bors-servo commented Mar 20, 2018

Testing commit e3798c4 with merge dfd151b...

bors-servo added a commit that referenced this pull request Mar 20, 2018
…t, r=glennw

Remove complex radial gradient API

Instead of allowing complex radial gradients, denormalize the stops
array when serializing display lists to YAML. We also store start and
end offset instead of start and end radius. This allows us to
denormalize the stops array in a more straight-forward way. This opens
up more opportunities for optimizing the radial gradient shader.

Fixes #2439.

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

bors-servo commented Mar 20, 2018

☀️ Test successful - status-appveyor, status-taskcluster, status-travis
Approved by: glennw
Pushing dfd151b to master...

@bors-servo bors-servo merged commit e3798c4 into servo:master Mar 20, 2018
2 checks passed
2 checks passed
continuous-integration/appveyor/pr AppVeyor build succeeded
Details
homu Test successful
Details
@mrobinson mrobinson deleted the mrobinson:remove-complex-radial-gradient-support branch Apr 26, 2018
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.