Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upText + perspective clipping fix. #3187
Conversation
|
r? @kvark |
|
Does this also fix the bug reported in #3087 (comment) ? |
|
looks great, thank you! |
|
@bors-servo r+ |
|
|
Text + perspective clipping fix. Much in the spirit of #2991. Working on a test now, but it's taking annoyingly hard because all the capture stuff is broken for fonts 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/3187) <!-- Reviewable:end -->
|
@bors-servo r-
|
|
@bors-servo r- |
|
@mstange it does. |
|
|
|
Hmm, needs some work, I think I just need to account for the snap_offset, but will double-check. |
|
@bors-servo try
https://treeherder.mozilla.org/#/jobs?repo=try&revision=efe5e3a2c559b0b07a3ee81aa6d884d336179db7 |
Text + perspective clipping fix. Much in the spirit of #3145. <!-- 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/3187) <!-- Reviewable:end -->
|
|
|
There are some tests failing on automation, but the text tests on my machine are way more unreliable, so it's going to be fun... (C'mon, even my own test is failing on automation, and I just took the screenshot myself :/)
|
|
Ah, the snap offset can be in local space for untransformed glyphs... That's somewhat messy :( |
|
Ok, I understood what this code is trying to do. This should be the right thing :) |
|
Try looks good, and reftest failed in OSX / Win, so I marked it linux-only as many in the same directory. |
|
So you ended up not fixing any more snapping offsets? |
|
Nope, the snapping offset bit was wrong, because glyphs are snapped before getting clamped (#3048), plus the offset may not be in the coordinate space we want (it may be transformed to local space if transforms are disabled). So this is the right thing to do. I have a patch that moves normal brush shaders to snapping before clamping to see what effect it has on the reftests that WR fails right now due to snapping / rounding differences. @bors-servo r=kvark |
|
|
Text + perspective clipping fix. Much in the spirit of #3145. <!-- 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/3187) <!-- Reviewable:end -->
|
|
emilio commentedOct 11, 2018
•
edited
Much in the spirit of #3145.
This change is