15:05 Company: has anyone ever suggested a way to set a rounded corner on a wl_buffer?
15:06 Company: I started thinking about it because https://developer.apple.com/documentation/quartzcore/calayer has a way to set rounded corners
16:04 soreau: if a client wants to do rounded corners for a surface, it can set opaque+input regions and render accordingly
16:33 Company: that wasn't the question
16:34 Company: the question was if it's been considered as a protocol to let the compositor do it
16:34 kchibisov: macOS does it all client side.
16:36 Company: well, it's part of the CALayer API - which is higher level than "let the client do it", but yeah, it's lower level than "let the compositor do it"
16:37 Company: the benefit with it is that you can make the client send you an opaque buffer + rounded corners and then forget about opaque regions
16:38 Company: you could also put it on the surface level and then get input regions and potential shadow handling for free
16:41 Company: I started wondering about the usefulness of it
16:41 Company: after seeing that CALayer does it
16:41 Company: and looking at mockups like https://gitlab.gnome.org/Teams/Design/app-mockups/-/raw/master/videos/videos.png
16:42 Company: because if I want to passthrough the video and all the players want rounded corners, it would solve a bunch of issues if I could just tell the compositor to do the rounding for me
16:44 Company: (though if those fat borders catch on, I can just overdraw the corner with the fat border)
17:26 kchibisov: IIRC macOS is just entirely desigend around CALayers since it's the only way to do partial updates on it.
17:27 kchibisov: Though, maybe you can now do swap chain with metal and track stuff.
21:31 ifreund: Company: iirc there's a private chromeos protocol for rounded corners
22:07 Company: indeed, https://wayland.app/protocols/surface-augmenter has something like that
22:09 Company: they allow setting a rounded clip on a surface
22:09 Company: and then clip the buffer to that