mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-04-17 06:46:39 -04:00
scene: add scene_buffer_set_buffer_and_texture()
This commit is contained in:
parent
95c2308928
commit
119c634d94
3 changed files with 63 additions and 16 deletions
|
|
@ -7,4 +7,8 @@ struct wlr_scene *scene_node_get_root(struct wlr_scene_node *node);
|
|||
|
||||
void scene_surface_set_clip(struct wlr_scene_surface *surface, struct wlr_box *clip);
|
||||
|
||||
void scene_buffer_set_buffer_and_texture(struct wlr_scene_buffer *scene_buffer,
|
||||
struct wlr_buffer *buffer, struct wlr_texture *texture,
|
||||
const pixman_region32_t *damage);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -184,6 +184,7 @@ struct wlr_scene_buffer {
|
|||
|
||||
uint64_t active_outputs;
|
||||
struct wlr_texture *texture;
|
||||
bool own_texture;
|
||||
struct wlr_linux_dmabuf_feedback_v1_init_options prev_feedback_options;
|
||||
|
||||
bool own_buffer;
|
||||
|
|
@ -191,6 +192,7 @@ struct wlr_scene_buffer {
|
|||
bool buffer_is_opaque;
|
||||
|
||||
struct wl_listener buffer_release;
|
||||
struct wl_listener texture_destroy;
|
||||
};
|
||||
|
||||
/** A viewport for an output in the scene-graph */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue