diff options
author | Simon Ser <contact@emersion.fr> | 2021-06-24 12:10:12 +0200 |
---|---|---|
committer | Simon Zeni <simon@bl4ckb0ne.ca> | 2021-06-24 13:53:05 -0400 |
commit | a2419eb4ea06d92eef8b6196e27a7de1b57e51e6 (patch) | |
tree | 2e3e3200be82740f5c1bdafc05f5f03514f0dd3a /render | |
parent | b69db15da6bbd0f110540a164c01aa6b6620953b (diff) |
render/egl: make most functions private
The wlr_egl functions are mostly used internally by the GLES2
renderer. Let's reduce our API surface a bit by hiding them. If
there are good use-cases for one of these, we can always make them
public again.
The functions mutating the current EGL context are not made private
because e.g. Wayfire uses them.
Diffstat (limited to 'render')
-rw-r--r-- | render/egl.c | 1 | ||||
-rw-r--r-- | render/gles2/renderer.c | 1 | ||||
-rw-r--r-- | render/gles2/texture.c | 1 |
3 files changed, 3 insertions, 0 deletions
diff --git a/render/egl.c b/render/egl.c index 616b3c6b..7f88880c 100644 --- a/render/egl.c +++ b/render/egl.c @@ -10,6 +10,7 @@ #include <wlr/util/log.h> #include <wlr/util/region.h> #include <xf86drm.h> +#include "render/egl.h" static enum wlr_log_importance egl_log_importance_to_wlr(EGLint type) { switch (type) { diff --git a/render/gles2/renderer.c b/render/gles2/renderer.c index baf53c72..e0534749 100644 --- a/render/gles2/renderer.c +++ b/render/gles2/renderer.c @@ -15,6 +15,7 @@ #include <wlr/types/wlr_matrix.h> #include <wlr/types/wlr_linux_dmabuf_v1.h> #include <wlr/util/log.h> +#include "render/egl.h" #include "render/gles2.h" #include "render/pixel_format.h" #include "types/wlr_buffer.h" diff --git a/render/gles2/texture.c b/render/gles2/texture.c index d42cff18..303ac411 100644 --- a/render/gles2/texture.c +++ b/render/gles2/texture.c @@ -11,6 +11,7 @@ #include <wlr/render/wlr_texture.h> #include <wlr/types/wlr_matrix.h> #include <wlr/util/log.h> +#include "render/egl.h" #include "render/gles2.h" #include "render/pixel_format.h" #include "types/wlr_buffer.h" |