wlr_raster: Support multiple renderers

This commit is contained in:
Alexander Orzechowski 2023-04-21 01:14:35 +02:00 committed by Alexander Orzechowski
parent 477c556019
commit 2cca0086fb
2 changed files with 93 additions and 30 deletions

View file

@ -19,10 +19,19 @@ struct wlr_renderer;
struct wlr_drm_syncobj_timeline;
struct wlr_surface;
struct wlr_raster_source {
struct wlr_texture *texture;
struct wl_list link;
struct wl_listener renderer_destroy;
};
struct wlr_raster {
// May be NULL
struct wlr_buffer *buffer;
struct wl_list sources;
uint32_t width, height;
bool opaque;
@ -39,7 +48,6 @@ struct wlr_raster {
struct wl_listener buffer_release;
struct wlr_texture *texture;
struct wl_listener renderer_destroy;
};