7 ms·
>Couldn’t the rounded corners of a video also be an overlay? No because the clipping is done in the client after the content is drawn. The client doesn't have
by play_ac 3y ago
>Couldn’t the rounded corners of a video also be an overlay?
No because the clipping is done in the client after the content is drawn. The client doesn't have the full screen contents. To make it work with an overlay, the clipping would have to be moved to the server. There could be another extension that lets you pass an alpha mask texture to the server to use as a clip mask. But this doesn't exist (yet?)
- audidude 3y agoAnd even if it did, you can't do clip masks with scanout overlays. So you have to composite (and therefore take the hit of ramping up the 3d capabilities of the GPU).
- play_ac 3y agoYes you can, what you would do is clip against the main framebuffer and leave the window area transparent by inverting the mask. Then you can have the other plane underneath the main one. This is only if your hardware supports that though.
- audidude 3y agoPresumably that would still cause issues at the rounded corners because you need to blend those pixels to make them look nice.