Re implement partial texture uploads for surfaces and immediate buffer unlocking

This commit is contained in:
Alexander Orzechowski 2022-06-28 13:11:23 -04:00
parent c71800cf8d
commit 43a3cbe6ae
4 changed files with 108 additions and 9 deletions

View file

@ -93,6 +93,13 @@ struct wlr_surface {
* The buffer position, in surface-local units.
*/
int sx, sy;
/**
* The surface's raster, if any. A surface has an attached raster when it
* commits with a non-null buffer in its pending state. A surface will not
* have a raster if it has never committed one or has committed a null
* buffer.
*/
struct wlr_raster *raster;
/**
* The last commit's buffer damage, in buffer-local coordinates. This
* contains both the damage accumulated by the client via
@ -157,6 +164,9 @@ struct wlr_surface {
} previous;
bool opaque;
struct wlr_raster *old_raster;
struct wl_listener raster_destroy;
};
struct wlr_renderer;