-
Notifications
You must be signed in to change notification settings - Fork 10.2k
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
[api-minor] Enables subpixel anti-aliasing for most of the content. #6551
Conversation
/botio-linux preview |
From: Bot.io (Linux)ReceivedCommand cmd_preview from @yurydelendik received. Current queue size: 0 Live output at: http://107.21.233.14:8877/fca3593656b1553/output.txt |
From: Bot.io (Linux)SuccessFull output at http://107.21.233.14:8877/fca3593656b1553/output.txt Total script time: 0.67 mins Published |
this.ctx.clearRect(0, 0, width, height); | ||
} else { | ||
this.ctx.mozOpaque = true; | ||
var trasparentCanvas = CachedCanvases.getCanvas( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: spelling trasparentCanvas
-> transparentCanvas
.
/botio test |
From: Bot.io (Windows)ReceivedCommand cmd_test from @yurydelendik received. Current queue size: 0 Live output at: http://107.22.172.223:8877/d2f49970dbf4ee6/output.txt |
From: Bot.io (Linux)ReceivedCommand cmd_test from @yurydelendik received. Current queue size: 0 Live output at: http://107.21.233.14:8877/5b8bf0a7d2d1215/output.txt |
From: Bot.io (Windows)FailedFull output at http://107.22.172.223:8877/d2f49970dbf4ee6/output.txt Total script time: 18.91 mins
Image differences available at: http://107.22.172.223:8877/d2f49970dbf4ee6/reftest-analyzer.html#web=eq.log |
From: Bot.io (Linux)FailedFull output at http://107.21.233.14:8877/5b8bf0a7d2d1215/output.txt Total script time: 20.14 mins
Image differences available at: http://107.21.233.14:8877/5b8bf0a7d2d1215/reftest-analyzer.html#web=eq.log |
a9bcf9c
to
402a732
Compare
See also https://bugzilla.mozilla.org/show_bug.cgi?id=1216906 (Past work at #4556) |
Minor version update due to |
Will this patch also fix #5197? |
Not sure it will, |
Is it correct to assume that this patch also fixes https://bugzilla.mozilla.org/show_bug.cgi?id=1161147? |
Correct. |
If I'm following the logic in https://mxr.mozilla.org/mozilla-central/source/dom/html/HTMLCanvasElement.cpp correctly {alpha: false} and mozOpaque should achieve the same thing. Can we just remove all mozOpaques? |
Correct, but it does not work on Nightly for Mac OSX. If I remove mozOpaque, the subpixel-aa is broken again (and still continue to work on Chrome) |
/botio-windows preview |
From: Bot.io (Windows)ReceivedCommand cmd_preview from @yurydelendik received. Current queue size: 0 Live output at: http://107.22.172.223:8877/91506f4d9673871/output.txt |
From: Bot.io (Windows)SuccessFull output at http://107.22.172.223:8877/91506f4d9673871/output.txt Total script time: 0.89 mins Published |
Left is the current master, right is this patch (click to enlarge the uncompressed image). The differences are more visible if you open two tabs, one with https://mozilla.github.io/pdf.js/web/viewer.html and one with http://107.22.172.223:8877/91506f4d9673871/web/viewer.html, put both on the same position in the document and then switch tabs back and forth. In the comparison below, take a close look at the letters p (in "alternative paths" on the left side, fourth sentence from the bottom) and h to notice the difference. The italic words are also less blurry with this patch applied (example: "General terms" below is more crisp, i.e. it appears to have less "drop shadow"). |
From: Bot.io (Windows)FailedFull output at http://107.22.172.223:8877/fb87b189154cb88/output.txt Total script time: 19.00 mins
Image differences available at: http://107.22.172.223:8877/fb87b189154cb88/reftest-analyzer.html#web=eq.log |
From: Bot.io (Linux)FailedFull output at http://107.21.233.14:8877/0d979471e9dd731/output.txt Total script time: 19.75 mins
Image differences available at: http://107.21.233.14:8877/0d979471e9dd731/reftest-analyzer.html#web=eq.log |
geothermal and issue1655 are now black. Though, these seem to have regressed at some point. |
That's normal, not a regression -- those are skipped pages. I made them white again. /botio test |
From: Bot.io (Windows)ReceivedCommand cmd_test from @yurydelendik received. Current queue size: 0 Live output at: http://107.22.172.223:8877/680655fcb371a39/output.txt |
From: Bot.io (Linux)ReceivedCommand cmd_test from @yurydelendik received. Current queue size: 0 Live output at: http://107.21.233.14:8877/6f43ad757305c2b/output.txt |
From: Bot.io (Windows)FailedFull output at http://107.22.172.223:8877/680655fcb371a39/output.txt Total script time: 18.96 mins
Image differences available at: http://107.22.172.223:8877/680655fcb371a39/reftest-analyzer.html#web=eq.log |
From: Bot.io (Linux)FailedFull output at http://107.21.233.14:8877/6f43ad757305c2b/output.txt Total script time: 19.58 mins
Image differences available at: http://107.21.233.14:8877/6f43ad757305c2b/reftest-analyzer.html#web=eq.log |
/botio makeref |
From: Bot.io (Linux)ReceivedCommand cmd_makeref from @brendandahl received. Current queue size: 0 Live output at: http://107.21.233.14:8877/ce060618d3cd473/output.txt |
From: Bot.io (Windows)ReceivedCommand cmd_makeref from @brendandahl received. Current queue size: 0 Live output at: http://107.22.172.223:8877/0839da959e79d99/output.txt |
r+ merge away when make ref is done |
From: Bot.io (Windows)SuccessFull output at http://107.22.172.223:8877/0839da959e79d99/output.txt Total script time: 18.90 mins
|
From: Bot.io (Linux)SuccessFull output at http://107.21.233.14:8877/ce060618d3cd473/output.txt Total script time: 20.00 mins
|
[api-minor] Enables subpixel anti-aliasing for most of the content.
The existing mozOpaque logic does not work. Allowing subpixel aa by default, for special blend modes temporary canvas will be created (thus delaying output). The latter requires more memory, it is a trade-off in favor of having a better text output for majority content.
Initially canvas will be created hidden (to hide black flickering), however after first draw callback it will be shown. (Alternative was fill it white before render command, however it will break existing custom solutions)
I noticed that CachedCanvases are broken (global cache can be cleared in the middle of other page rendering) -- added local caches instead.