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
|
|
@ -66,10 +66,7 @@ static void set_raster_with_surface_state(struct wlr_scene_raster *scene_raster,
|
|||
wlr_scene_raster_set_dest_size(scene_raster, state->width, state->height);
|
||||
wlr_scene_raster_set_transform(scene_raster, state->transform);
|
||||
|
||||
struct wlr_raster *raster = NULL;
|
||||
if (surface->current.buffer) {
|
||||
raster = wlr_raster_create(surface->current.buffer);
|
||||
}
|
||||
struct wlr_raster *raster = surface->raster;
|
||||
|
||||
if (raster) {
|
||||
wlr_scene_raster_set_raster_with_damage(scene_raster,
|
||||
|
|
@ -77,8 +74,6 @@ static void set_raster_with_surface_state(struct wlr_scene_raster *scene_raster,
|
|||
} else {
|
||||
wlr_scene_raster_set_raster(scene_raster, NULL);
|
||||
}
|
||||
|
||||
wlr_raster_unlock(raster);
|
||||
}
|
||||
|
||||
static void handle_scene_surface_surface_commit(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue