aboutsummaryrefslogtreecommitdiff
path: root/backend/drm/drm.h
diff options
context:
space:
mode:
authorScott Anderson <ascent12@hotmail.com>2017-08-06 21:38:40 +1200
committerScott Anderson <ascent12@hotmail.com>2017-08-06 21:38:40 +1200
commit1db97a9af906524b577e5f1a4f842e18a0a942a4 (patch)
tree8b6bc2ed6b43d6aabbd433a33c7901c333b71a04 /backend/drm/drm.h
parentaedfa27d3a213dd9cf53ed3351874b34ff0de119 (diff)
Updated DRM cursor rendering
Diffstat (limited to 'backend/drm/drm.h')
-rw-r--r--backend/drm/drm.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/backend/drm/drm.h b/backend/drm/drm.h
index feb932df..91346169 100644
--- a/backend/drm/drm.h
+++ b/backend/drm/drm.h
@@ -21,11 +21,9 @@
struct wlr_drm_plane {
uint32_t type;
uint32_t id;
- uint32_t fb_id;
uint32_t possible_crtcs;
- int32_t x, y;
uint32_t width, height;
struct gbm_surface *gbm;
@@ -34,6 +32,11 @@ struct wlr_drm_plane {
struct gbm_bo *front;
struct gbm_bo *back;
+ // Only used by cursor
+ float matrix[16];
+ struct wlr_renderer *wlr_rend;
+ struct wlr_surface *wlr_surf;
+
union wlr_drm_plane_props props;
};
@@ -159,5 +162,6 @@ void wlr_drm_scan_connectors(struct wlr_backend_state *state);
int wlr_drm_event(int fd, uint32_t mask, void *data);
void wlr_drm_output_start_renderer(struct wlr_output_state *output);
+bool wlr_drm_crtc_set_cursor(struct wlr_backend_state *drm, struct wlr_drm_crtc *crtc);
#endif