render/egl: make wlr_egl context private, replace them with public wlr_egl_context functions

This commit is contained in:
Simon Zeni 2021-09-21 10:00:17 -04:00
parent 6eff6c365b
commit f70f37a2c2
3 changed files with 42 additions and 4 deletions

View file

@ -81,11 +81,14 @@ struct wlr_egl {
* 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_context_set_current(struct wlr_egl_context *ctx);
bool wlr_egl_unset_current(struct wlr_egl *egl);
/**
* Clear the EGL context
*/
bool wlr_egl_context_unset_current(struct wlr_egl_context *ctx);
bool wlr_egl_is_current(struct wlr_egl *egl);
bool wlr_egl_context_is_current(struct wlr_egl_context *ctx);
/**
* Save the current EGL context to the structure provided in the argument.