diff options
author | emersion <contact@emersion.fr> | 2018-01-23 22:06:54 +0100 |
---|---|---|
committer | emersion <contact@emersion.fr> | 2018-01-23 22:06:54 +0100 |
commit | 4fa90b05119720a67ccb63cd89246abdb4abf4ea (patch) | |
tree | ee019624271aca1e4ac9560ffc528d4563c01b52 /backend/drm | |
parent | 03440bbd83b5d68404db8ebc2df310ec0f8c9b32 (diff) |
Backport screenshooter fixes from the renderer redesign v1
This backports some changes to #319 to fix the screenshooter data
format. This also adds wlr_backend_get_renderer which will be
useful to support multiple renderers.
Diffstat (limited to 'backend/drm')
-rw-r--r-- | backend/drm/backend.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/backend/drm/backend.c b/backend/drm/backend.c index 112b2b61..0cb64930 100644 --- a/backend/drm/backend.c +++ b/backend/drm/backend.c @@ -50,10 +50,17 @@ static struct wlr_egl *wlr_drm_backend_get_egl(struct wlr_backend *backend) { return &drm->renderer.egl; } +static struct wlr_renderer *wlr_drm_backend_get_renderer( + struct wlr_backend *backend) { + struct wlr_drm_backend *drm = (struct wlr_drm_backend *)backend; + return drm->renderer.wlr_rend; +} + static struct wlr_backend_impl backend_impl = { .start = wlr_drm_backend_start, .destroy = wlr_drm_backend_destroy, - .get_egl = wlr_drm_backend_get_egl + .get_egl = wlr_drm_backend_get_egl, + .get_renderer = wlr_drm_backend_get_renderer, }; bool wlr_backend_is_drm(struct wlr_backend *b) { |