mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-01 22:58:38 -04:00
buffer: drop wlr_shm_client_buffer
It's been superseded by wlr_shm.
This commit is contained in:
parent
da3616d183
commit
6c277e3c39
4 changed files with 1 additions and 157 deletions
|
|
@ -3,28 +3,6 @@
|
|||
|
||||
#include <wlr/types/wlr_buffer.h>
|
||||
|
||||
struct wlr_shm_client_buffer {
|
||||
struct wlr_buffer base;
|
||||
|
||||
uint32_t format;
|
||||
size_t stride;
|
||||
|
||||
// The following fields are NULL if the client has destroyed the wl_buffer
|
||||
struct wl_resource *resource;
|
||||
struct wl_shm_buffer *shm_buffer;
|
||||
|
||||
// This is used to keep the backing storage alive after the client has
|
||||
// destroyed the wl_buffer
|
||||
struct wl_shm_pool *saved_shm_pool;
|
||||
void *saved_data;
|
||||
|
||||
struct wl_listener resource_destroy;
|
||||
struct wl_listener release;
|
||||
};
|
||||
|
||||
struct wlr_shm_client_buffer *shm_client_buffer_get_or_create(
|
||||
struct wl_resource *resource);
|
||||
|
||||
/**
|
||||
* A read-only buffer that holds a data pointer.
|
||||
*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue