mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-11-08 13:29:47 -05:00
Fall back to cairo image backend and shm surface if we don't have cairo gl
This commit is contained in:
parent
6866856dfd
commit
d0c3b9da22
4 changed files with 331 additions and 100 deletions
|
|
@ -138,6 +138,10 @@ window_schedule_redraw(struct window *window);
|
|||
void
|
||||
window_move(struct window *window, int32_t x, int32_t y);
|
||||
|
||||
void
|
||||
window_damage(struct window *window, int32_t x, int32_t y,
|
||||
int32_t width, int32_t height);
|
||||
|
||||
cairo_surface_t *
|
||||
window_get_surface(struct window *window);
|
||||
|
||||
|
|
@ -149,6 +153,14 @@ window_copy_surface(struct window *window,
|
|||
void
|
||||
window_flush(struct window *window);
|
||||
|
||||
enum window_buffer_type {
|
||||
WINDOW_BUFFER_TYPE_DRM,
|
||||
WINDOW_BUFFER_TYPE_SHM,
|
||||
};
|
||||
|
||||
void
|
||||
window_set_buffer_type(struct window *window, enum window_buffer_type type);
|
||||
|
||||
void
|
||||
window_set_fullscreen(struct window *window, int fullscreen);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue