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