mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-04-21 06:46:46 -04:00
Re implement partial texture uploads for surfaces and immediate buffer unlocking
This commit is contained in:
parent
c71800cf8d
commit
43a3cbe6ae
4 changed files with 108 additions and 9 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue