-
Notifications
You must be signed in to change notification settings - Fork 268
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
Full rectangular pixel snapping #1292
Conversation
@kvark This generally looks good to me. After running the CSS tests, I get these unexpected results:
It's quite possible that those changes are in fact a different issue, exposed by these changes. But let's investigate them first and see if we can work out what's causing the changes. |
I ran a try build before and after this change on my branch where I'm working on enabling borders in gecko: this fixes like 30 tests! 🎉 Just one interesting regression: |
@gankro thanks for giving it a try! I looked at the failing border test, and it doesn't appear to be trivial at all. Given the number of tests fixed, I think it's a step forward to trade 30 for 1 here. Hopefully, further investigation on border rendering will clear this out. @glennw I checked rotate_45 tests, and we are rendering them now exactly like Gecko does. Unfortunately, this doesn't match WPT reference, which means Gecko fails it as well. Thus, the answer lies in the investigation of who is right between Gecko and WPT. |
@kvark Ah, interesting! If Gecko fails those reftests, we have a good case for disabling / marking as fails in the Servo test metadata. |
@kvark It'd be interesting to know if Blink also fails those tests, if it's easy to check. |
@glennw for all 3 failed tests (by this PR), I confirm both Gecko (52.0.2, Linus) and Chromium (57.0.2987.133, Linus) fail them as well (even though Chromium produces a little different result from Gecko). I took the upstream versions of the tests (from web-platform-tests repo) just to be sure. |
@bors-servo r+ |
📌 Commit 70c099f has been approved by |
Full rectangular pixel snapping Fixes #1279 r? @glennw WIP TODOs: - [x] test servo WPT reftests - [x] add local snapping tests - [x] cover `write_transform_vertex` <!-- 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/1292) <!-- Reviewable:end -->
💔 Test failed - status-travis |
Looks like this slightly changed anti-aliasing behaviour, so you need to regenerate the test I just added (reftests/border/degenerate-curve). Or make it fuzzy (max difference: 44, number of differing pixels: 287). |
Given that nothing in the code is changed, and the new reftest author gives a green light on changing the test, I consider this PR to still be approved. @bors-servo r=glennw |
📌 Commit d4235d4 has been approved by |
Full rectangular pixel snapping Fixes #1279 r? @glennw WIP TODOs: - [x] test servo WPT reftests - [x] add local snapping tests - [x] cover `write_transform_vertex` <!-- 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/1292) <!-- Reviewable:end -->
☀️ Test successful - status-travis |
@kvark This PR (or #1296, haven't done a full bisection) appears to be causing a panic in gecko crashtests, when running It might also be responsible for an increase in fuzziness in the |
@staktrace are you sure? this PR doesn't touch any Rust code, it would unlikely trigger a panic in |
Sorry, my bad. I kicked off a bisection to confirm after posting the comment, and it looks like #1296 is the culprit. The same panic appears on this try push which has webrender at cset 150da47 (including #1296 but not this one). |
Also for the record the column-balancing-overflow-005.html fuzziness increase is from this PR. |
Thanks @staktrace ! That's the regression mentioned by @gankro here - #1292 (comment) |
…ender#1292. r=jrmuizel MozReview-Commit-ID: 6gc49H6Vwob
…ender#1292. r=jrmuizel MozReview-Commit-ID: 6gc49H6Vwob
…ender#1292. r=jrmuizel MozReview-Commit-ID: 6gc49H6Vwob
…ender#1292. r=jrmuizel MozReview-Commit-ID: 6gc49H6Vwob
This reverts servo#1339, which just reverted servo#1292 and servo#1319. The original changes seem to behaving well now. It's unclear what was happening, but whatever it was, it seems fine now! Here is the full list of reverts: Revert "Manually re-apply ANGLE workaround in 3debb57." This reverts commit 9143f1d. Revert "Revert "Full rectangular pixel snapping"" This reverts commit de7e944. Revert "Revert "Snapping transformed primitives"" This reverts commit dae62c5. Revert "Revert "Snapping ref tests"" This reverts commit d6f03ba. Revert "Revert "Ensure that subpixel sized snap rects are at least 1 device pixel."" This reverts commit d396a7e. Revert "Revert "clamp_rect Angle workaround"" This reverts commit ef24b78. Revert "Revert "Don't apply local clip rect to snap rectangle calculation."" This reverts commit 406b102.
This reverts servo#1339, which just reverted servo#1292 and servo#1319. The original changes seem to behaving well now. It's unclear what was happening, but whatever it was, it seems fine now! Here is the full list of reverts: Revert "Manually re-apply ANGLE workaround in 3debb57." This reverts commit 9143f1d. Revert "Revert "Full rectangular pixel snapping"" This reverts commit de7e944. Revert "Revert "Snapping transformed primitives"" This reverts commit dae62c5. Revert "Revert "Snapping ref tests"" This reverts commit d6f03ba. Revert "Revert "Ensure that subpixel sized snap rects are at least 1 device pixel."" This reverts commit d396a7e. Revert "Revert "clamp_rect Angle workaround"" This reverts commit ef24b78. Revert "Revert "Don't apply local clip rect to snap rectangle calculation."" This reverts commit 406b102.
…ender#1292. r=jrmuizel MozReview-Commit-ID: 6gc49H6Vwob
…ender#1292. r=jrmuizel MozReview-Commit-ID: 6gc49H6Vwob UltraBlame original commit: 90199d13a72cbe1bab0a4a58bec2404b5cf8e248
…ender#1292. r=jrmuizel MozReview-Commit-ID: 6gc49H6Vwob UltraBlame original commit: 90199d13a72cbe1bab0a4a58bec2404b5cf8e248
…ender#1292. r=jrmuizel MozReview-Commit-ID: 6gc49H6Vwob UltraBlame original commit: 90199d13a72cbe1bab0a4a58bec2404b5cf8e248
Fixes #1279
r? @glennw
WIP TODOs:
write_transform_vertex
This change is![Reviewable](https://camo.githubusercontent.com/23b05f5fb48215c989e92cc44cf6512512d083132bd3daf689867c8d9d386888/68747470733a2f2f72657669657761626c652e696f2f7265766965775f627574746f6e2e737667)