mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-31 22:25:21 -04:00
wlr_texture: Introduce wlr_texture_preferred_read_format
This commit is contained in:
parent
09f16b2a9c
commit
57b18d26d0
3 changed files with 12 additions and 0 deletions
|
|
@ -54,6 +54,7 @@ struct wlr_texture_impl {
|
|||
struct wlr_buffer *buffer, const pixman_region32_t *damage);
|
||||
bool (*read_pixels)(struct wlr_texture *texture,
|
||||
const struct wlr_texture_read_pixels_options *options);
|
||||
uint32_t (*preferred_read_format)(struct wlr_texture *texture);
|
||||
void (*destroy)(struct wlr_texture *texture);
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -42,6 +42,8 @@ struct wlr_texture_read_pixels_options {
|
|||
bool wlr_texture_read_pixels(struct wlr_texture *texture,
|
||||
const struct wlr_texture_read_pixels_options *options);
|
||||
|
||||
uint32_t wlr_texture_preferred_read_format(struct wlr_texture *texture);
|
||||
|
||||
/**
|
||||
* Create a new texture from raw pixel data. `stride` is in bytes. The returned
|
||||
* texture is mutable.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue