mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-11-14 06:59:46 -05:00
Add a shm buffer sharing mechanism
This commit is contained in:
parent
98ffc93b95
commit
3d5bae0700
8 changed files with 286 additions and 46 deletions
|
|
@ -107,6 +107,13 @@ struct wl_resource {
|
|||
|
||||
struct wl_buffer {
|
||||
struct wl_resource base;
|
||||
struct wl_compositor *compositor;
|
||||
struct wl_visual *visual;
|
||||
int32_t width, height;
|
||||
void (*attach)(struct wl_buffer *buffer, struct wl_surface *surface);
|
||||
void (*damage)(struct wl_buffer *buffer,
|
||||
struct wl_surface *surface,
|
||||
int32_t x, int32_t y, int32_t width, int32_t height);
|
||||
};
|
||||
|
||||
struct wl_surface {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue