aboutsummaryrefslogtreecommitdiff
path: root/backend
diff options
context:
space:
mode:
Diffstat (limited to 'backend')
-rw-r--r--backend/backend.c7
-rw-r--r--backend/drm/backend.c6
-rw-r--r--backend/headless/backend.c7
-rw-r--r--backend/multi/backend.c13
-rw-r--r--backend/wayland/backend.c6
-rw-r--r--backend/x11/backend.c6
6 files changed, 0 insertions, 45 deletions
diff --git a/backend/backend.c b/backend/backend.c
index b583855e..20bf42b3 100644
--- a/backend/backend.c
+++ b/backend/backend.c
@@ -47,13 +47,6 @@ void wlr_backend_destroy(struct wlr_backend *backend) {
}
}
-struct wlr_egl *wlr_backend_get_egl(struct wlr_backend *backend) {
- if (backend->impl->get_egl) {
- return backend->impl->get_egl(backend);
- }
- return NULL;
-}
-
struct wlr_renderer *wlr_backend_get_renderer(struct wlr_backend *backend) {
if (backend->impl->get_renderer) {
return backend->impl->get_renderer(backend);
diff --git a/backend/drm/backend.c b/backend/drm/backend.c
index 43a8d017..66cb89d3 100644
--- a/backend/drm/backend.c
+++ b/backend/drm/backend.c
@@ -48,11 +48,6 @@ static void wlr_drm_backend_destroy(struct wlr_backend *backend) {
free(drm);
}
-static struct wlr_egl *wlr_drm_backend_get_egl(struct wlr_backend *backend) {
- struct wlr_drm_backend *drm = (struct wlr_drm_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;
@@ -62,7 +57,6 @@ static struct wlr_renderer *wlr_drm_backend_get_renderer(
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_renderer = wlr_drm_backend_get_renderer,
};
diff --git a/backend/headless/backend.c b/backend/headless/backend.c
index 5bc48240..81b01376 100644
--- a/backend/headless/backend.c
+++ b/backend/headless/backend.c
@@ -58,12 +58,6 @@ static void backend_destroy(struct wlr_backend *wlr_backend) {
free(backend);
}
-static struct wlr_egl *backend_get_egl(struct wlr_backend *wlr_backend) {
- struct wlr_headless_backend *backend =
- (struct wlr_headless_backend *)wlr_backend;
- return &backend->egl;
-}
-
static struct wlr_renderer *backend_get_renderer(
struct wlr_backend *wlr_backend) {
struct wlr_headless_backend *backend =
@@ -74,7 +68,6 @@ static struct wlr_renderer *backend_get_renderer(
static const struct wlr_backend_impl backend_impl = {
.start = backend_start,
.destroy = backend_destroy,
- .get_egl = backend_get_egl,
.get_renderer = backend_get_renderer,
};
diff --git a/backend/multi/backend.c b/backend/multi/backend.c
index 5cb3fbc5..50563892 100644
--- a/backend/multi/backend.c
+++ b/backend/multi/backend.c
@@ -52,18 +52,6 @@ static void multi_backend_destroy(struct wlr_backend *wlr_backend) {
free(backend);
}
-static struct wlr_egl *multi_backend_get_egl(struct wlr_backend *wlr_backend) {
- struct wlr_multi_backend *backend = (struct wlr_multi_backend *)wlr_backend;
- struct subbackend_state *sub;
- wl_list_for_each(sub, &backend->backends, link) {
- struct wlr_egl *egl = wlr_backend_get_egl(sub->backend);
- if (egl) {
- return egl;
- }
- }
- return NULL;
-}
-
static struct wlr_renderer *multi_backend_get_renderer(
struct wlr_backend *backend) {
struct wlr_multi_backend *multi = (struct wlr_multi_backend *)backend;
@@ -80,7 +68,6 @@ static struct wlr_renderer *multi_backend_get_renderer(
struct wlr_backend_impl backend_impl = {
.start = multi_backend_start,
.destroy = multi_backend_destroy,
- .get_egl = multi_backend_get_egl,
.get_renderer = multi_backend_get_renderer,
};
diff --git a/backend/wayland/backend.c b/backend/wayland/backend.c
index 0135f7c5..4bcb9360 100644
--- a/backend/wayland/backend.c
+++ b/backend/wayland/backend.c
@@ -110,11 +110,6 @@ static void wlr_wl_backend_destroy(struct wlr_backend *wlr_backend) {
free(backend);
}
-static struct wlr_egl *wlr_wl_backend_get_egl(struct wlr_backend *wlr_backend) {
- struct wlr_wl_backend *backend = (struct wlr_wl_backend *)wlr_backend;
- return &backend->egl;
-}
-
static struct wlr_renderer *wlr_wl_backend_get_renderer(
struct wlr_backend *wlr_backend) {
struct wlr_wl_backend *backend = (struct wlr_wl_backend *)wlr_backend;
@@ -124,7 +119,6 @@ static struct wlr_renderer *wlr_wl_backend_get_renderer(
static struct wlr_backend_impl backend_impl = {
.start = wlr_wl_backend_start,
.destroy = wlr_wl_backend_destroy,
- .get_egl = wlr_wl_backend_get_egl,
.get_renderer = wlr_wl_backend_get_renderer,
};
diff --git a/backend/x11/backend.c b/backend/x11/backend.c
index 59b75a03..02f5ef6f 100644
--- a/backend/x11/backend.c
+++ b/backend/x11/backend.c
@@ -257,11 +257,6 @@ static void wlr_x11_backend_destroy(struct wlr_backend *backend) {
free(x11);
}
-static struct wlr_egl *wlr_x11_backend_get_egl(struct wlr_backend *backend) {
- struct wlr_x11_backend *x11 = (struct wlr_x11_backend *)backend;
- return &x11->egl;
-}
-
static struct wlr_renderer *wlr_x11_backend_get_renderer(
struct wlr_backend *backend) {
struct wlr_x11_backend *x11 = (struct wlr_x11_backend *)backend;
@@ -271,7 +266,6 @@ static struct wlr_renderer *wlr_x11_backend_get_renderer(
static const struct wlr_backend_impl backend_impl = {
.start = wlr_x11_backend_start,
.destroy = wlr_x11_backend_destroy,
- .get_egl = wlr_x11_backend_get_egl,
.get_renderer = wlr_x11_backend_get_renderer,
};