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.
This commit is contained in:
Simon Ser 2022-05-25 17:43:51 +02:00 committed by Simon Zeni
parent f954092f22
commit 4b3e08c8ac
2 changed files with 12 additions and 12 deletions

View file

@ -101,4 +101,16 @@ void wlr_egl_save_context(struct wlr_egl_context *context);
*/ */
bool wlr_egl_restore_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 #endif

View file

@ -47,16 +47,4 @@ EGLDisplay wlr_egl_get_display(struct wlr_egl *egl);
*/ */
EGLContext wlr_egl_get_context(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 #endif