mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-31 22:25:21 -04:00
Implement drm (egl) buffer attaching
This commit is contained in:
parent
750d0ad458
commit
67369173aa
19 changed files with 308 additions and 23 deletions
|
|
@ -2,6 +2,7 @@
|
|||
#define _WLR_GLES2_RENDERER_H
|
||||
#include <wlr/render.h>
|
||||
|
||||
struct wlr_egl;
|
||||
struct wlr_renderer *wlr_gles2_renderer_init();
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -42,7 +42,8 @@ struct wlr_texture_impl {
|
|||
struct wl_shm_buffer *shm);
|
||||
bool (*update_shm)(struct wlr_texture_state *surf, uint32_t format,
|
||||
int x, int y, int width, int height, struct wl_shm_buffer *shm);
|
||||
// TODO: egl
|
||||
bool (*upload_drm)(struct wlr_texture_state *state,
|
||||
struct wl_resource *drm_buf);
|
||||
void (*get_matrix)(struct wlr_texture_state *state,
|
||||
float (*matrix)[16], const float (*projection)[16], int x, int y);
|
||||
void (*bind)(struct wlr_texture_state *state);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue