From 4b3e08c8acf0b83654c203bf7e055fc995f2540f Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Wed, 25 May 2022 17:43:51 +0200 Subject: [PATCH] render/egl: make wlr_egl_{make,unset,is}_current private These are trivial wrappers around eglMakeCurrent and eglGetCurrentContext. Compositors which need to call these functions will also call other EGL or GL functions anyways. Let's reduce our API surface a bit by making them private. --- include/render/egl.h | 12 ++++++++++++ include/wlr/render/egl.h | 12 ------------ 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/include/render/egl.h b/include/render/egl.h index 547254c8..f77e1147 100644 --- a/include/render/egl.h +++ b/include/render/egl.h @@ -101,4 +101,16 @@ void wlr_egl_save_context(struct wlr_egl_context *context); */ bool wlr_egl_restore_context(struct wlr_egl_context *context); +/** + * Make the EGL context current. + * + * Callers are expected to clear the current context when they are done by + * calling wlr_egl_unset_current(). + */ +bool wlr_egl_make_current(struct wlr_egl *egl); + +bool wlr_egl_unset_current(struct wlr_egl *egl); + +bool wlr_egl_is_current(struct wlr_egl *egl); + #endif diff --git a/include/wlr/render/egl.h b/include/wlr/render/egl.h index 8cb48e02..7374e86d 100644 --- a/include/wlr/render/egl.h +++ b/include/wlr/render/egl.h @@ -47,16 +47,4 @@ EGLDisplay wlr_egl_get_display(struct wlr_egl *egl); */ EGLContext wlr_egl_get_context(struct wlr_egl *egl); -/** - * Make the EGL context current. - * - * Callers are expected to clear the current context when they are done by - * calling wlr_egl_unset_current(). - */ -bool wlr_egl_make_current(struct wlr_egl *egl); - -bool wlr_egl_unset_current(struct wlr_egl *egl); - -bool wlr_egl_is_current(struct wlr_egl *egl); - #endif