Webrender: Consider adding an API to specify root corner radii

Created on 24 Oct 2017  路  3Comments  路  Source: servo/webrender

At the moment, on macOS, due to the way Firefox gets its OpenGL content to the screen, the window's bottom corners are square instead of rounded. It would be nice to have webrender apply rounded corners to its rendering on request.

The effects of this API would be slightly different compared to a rounded clip in the display list that is applied to the entire display list contents: The corner radius would also apply to WebRender's backdrop color, and the clipping can be implemented more efficiently. Instead of drawing all primitives with a certain clip, they can be drawn completely unclipped and then the corners can be erased at the very end.

bugzilled enhancement

All 3 comments

We probably won't need this, assuming our plans to use CoreAnimation for the window pan out.

Update, over a year later: Yes indeed, we won't need this.

Was this page helpful?
0 / 5 - 0 ratings