|
|
@ -155,13 +155,6 @@ struct wlr_client_buffer {
|
|
|
|
size_t n_ignore_locks;
|
|
|
|
size_t n_ignore_locks;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* Creates a struct wlr_client_buffer from a given struct wlr_buffer by creating
|
|
|
|
|
|
|
|
* a texture from it, and copying its struct wl_resource.
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
struct wlr_client_buffer *wlr_client_buffer_create(struct wlr_buffer *buffer,
|
|
|
|
|
|
|
|
struct wlr_renderer *renderer);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Get a client buffer from a generic buffer. If the buffer isn't a client
|
|
|
|
* Get a client buffer from a generic buffer. If the buffer isn't a client
|
|
|
|
* buffer, returns NULL.
|
|
|
|
* buffer, returns NULL.
|
|
|
@ -171,13 +164,5 @@ struct wlr_client_buffer *wlr_client_buffer_get(struct wlr_buffer *buffer);
|
|
|
|
* Check if a resource is a wl_buffer resource.
|
|
|
|
* Check if a resource is a wl_buffer resource.
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
bool wlr_resource_is_buffer(struct wl_resource *resource);
|
|
|
|
bool wlr_resource_is_buffer(struct wl_resource *resource);
|
|
|
|
/**
|
|
|
|
|
|
|
|
* Try to update the buffer's content.
|
|
|
|
|
|
|
|
*
|
|
|
|
|
|
|
|
* Fails if there's more than one reference to the buffer or if the texture
|
|
|
|
|
|
|
|
* isn't mutable.
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
bool wlr_client_buffer_apply_damage(struct wlr_client_buffer *client_buffer,
|
|
|
|
|
|
|
|
struct wlr_buffer *next, const pixman_region32_t *damage);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|