[Webkit-unassigned] [Bug 271653] [WPE] Holepunch doesn't work when the video element has rounded corners
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Mar 26 06:21:36 PDT 2024
https://bugs.webkit.org/show_bug.cgi?id=271653
--- Comment #1 from Miguel Gomez <magomez at igalia.com> ---
In the end I came up with a solution to perform the rounded rectangle clipping without the need of blending.
The idea is to discard the fragments that are out of the rectangle in the fragment shader, instead of painting them transparent as we're doing now.
The difference between blending being enabled or not is whether we can do some antialiasing on the pixels that are on the border of the rounded corners. When blending is enabled, we can reduce the opacity of those pixels depending on how much they are inside the rect, which improves the visual result.
On the other hand, when blending is disabled we can't use that strategy, so the result will be visually worse. The good thing is that the only case where blending will be disabled is when we're rendering a holepunch buffer, to that should be ok,
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20240326/3931890e/attachment.htm>
More information about the webkit-unassigned
mailing list