surface: add wlr_surface.opaque_region

This commit is contained in:
emersion 2018-07-13 10:54:51 +01:00
parent c4915d1492
commit 5bb272d7f3
2 changed files with 28 additions and 0 deletions

View file

@ -66,6 +66,12 @@ struct wlr_surface {
* just like the buffer's texture.
*/
pixman_region32_t buffer_damage;
/**
* The current opaque region, in surface-local coordinates. It is clipped to
* the surface bounds. If the surface's buffer is using a fully opaque
* format, this is set to the whole surface.
*/
pixman_region32_t opaque_region;
/**
* `current` contains the current, committed surface state. `pending`
* accumulates state changes from the client between commits and shouldn't