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

Bring the border radius back on Linux. #446

Merged
merged 3 commits into from Oct 18, 2016
Merged

Conversation

@emilio
Copy link
Member

emilio commented Oct 18, 2016

I just noticed while reading over #444 that this same line is commented for
clipping. This was making the alpha component of the border radius being always
zero.

This brings back the border radius on Linux. I didn't notice any other issue.
Not totally sure why this only happens on Intel cards though, probably is a
floating point math issue?

Also, this improves the appearance with LIBGL_ALWAYS_SOFTWARE=1 too, which I guess is the canonical representation.


This change is Reviewable

emilio added 3 commits Oct 18, 2016
I just noticed while reading over #444 that this same line is commented for
clipping. This was making the alpha component of the border radius being always
zero.

This brings back the border radius on Linux. I didn't notice any other issue.
Not totally sure why this only happens on Intel cards though, probably is a
floating point math issue?
@emilio
Copy link
Member Author

emilio commented Oct 18, 2016

r? @glennw

The two last commits are just cleanups though.

@glennw
Copy link
Member

glennw commented Oct 18, 2016

@mrobinson Does this make sense as a fix? (It seems like the clip/non-clip shader should be consistent with use of that distance_from_line anyway)?

@mrobinson
Copy link
Member

mrobinson commented Oct 18, 2016

This change looks okay to me, especially if it fixes an issue. I didn't mean to include the gradual fade out here (I meant to delete the commented-out line), but clearly something is wrong. At some point after this lands, I plan to take a look the bug again in more detail.

@glennw
Copy link
Member

glennw commented Oct 18, 2016

@bors-servo
Copy link
Contributor

bors-servo commented Oct 18, 2016

📌 Commit d3c5e54 has been approved by glennw

@bors-servo
Copy link
Contributor

bors-servo commented Oct 18, 2016

Testing commit d3c5e54 with merge cb204bf...

bors-servo added a commit that referenced this pull request Oct 18, 2016
Bring the border radius back on Linux.

I just noticed while reading over #444 that this same line is commented for
clipping. This was making the alpha component of the border radius being always
zero.

This brings back the border radius on Linux. I didn't notice any other issue.
Not totally sure why this only happens on Intel cards though, probably is a
floating point math issue?

Also, this improves the appearance with `LIBGL_ALWAYS_SOFTWARE=1` too, which I guess is the canonical representation.

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

bors-servo commented Oct 18, 2016

☀️ Test successful - status-travis

@bors-servo bors-servo merged commit d3c5e54 into servo:master Oct 18, 2016
3 checks passed
3 checks passed
continuous-integration/appveyor/pr AppVeyor build succeeded
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
homu Test successful
Details
@emilio emilio deleted the emilio:intel-linux branch Oct 18, 2016
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

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