mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-02 09:01:38 -05:00
Split DRM rendering to its own file
This commit is contained in:
parent
d0708b1a3a
commit
096249a2a1
8 changed files with 202 additions and 165 deletions
|
|
@ -17,6 +17,7 @@
|
|||
|
||||
#include "iface.h"
|
||||
#include "properties.h"
|
||||
#include "renderer.h"
|
||||
|
||||
struct wlr_drm_plane {
|
||||
uint32_t type;
|
||||
|
|
@ -24,13 +25,7 @@ struct wlr_drm_plane {
|
|||
|
||||
uint32_t possible_crtcs;
|
||||
|
||||
uint32_t width, height;
|
||||
|
||||
struct gbm_surface *gbm;
|
||||
EGLSurface egl;
|
||||
|
||||
struct gbm_bo *front;
|
||||
struct gbm_bo *back;
|
||||
struct wlr_drm_surface surf;
|
||||
|
||||
// Only used by cursor
|
||||
float matrix[16];
|
||||
|
|
@ -70,17 +65,6 @@ struct wlr_drm_connector {
|
|||
struct wl_list link;
|
||||
};
|
||||
|
||||
struct wlr_drm_renderer {
|
||||
int fd;
|
||||
struct gbm_device *gbm;
|
||||
struct wlr_egl egl;
|
||||
};
|
||||
|
||||
bool wlr_drm_renderer_init(struct wlr_drm_renderer *renderer, int fd);
|
||||
void wlr_drm_renderer_free(struct wlr_drm_renderer *renderer);
|
||||
|
||||
struct wlr_drm_interface;
|
||||
|
||||
struct wlr_drm_backend {
|
||||
struct wlr_backend backend;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue