mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-10 13:29:44 -05:00
render/egl: make wlr_egl_context public
This commit is contained in:
parent
3c26244340
commit
6eff6c365b
5 changed files with 36 additions and 34 deletions
|
|
@ -3,13 +3,6 @@
|
|||
|
||||
#include <wlr/render/egl.h>
|
||||
|
||||
struct wlr_egl_context {
|
||||
EGLDisplay display;
|
||||
EGLContext context;
|
||||
EGLSurface draw_surface;
|
||||
EGLSurface read_surface;
|
||||
};
|
||||
|
||||
/**
|
||||
* Initializes an EGL context for the given DRM FD.
|
||||
*
|
||||
|
|
@ -48,16 +41,4 @@ bool wlr_egl_destroy_image(struct wlr_egl *egl, EGLImageKHR image);
|
|||
|
||||
int wlr_egl_dup_drm_fd(struct wlr_egl *egl);
|
||||
|
||||
/**
|
||||
* Save the current EGL context to the structure provided in the argument.
|
||||
*
|
||||
* This includes display, context, draw surface and read surface.
|
||||
*/
|
||||
void wlr_egl_save_context(struct wlr_egl_context *context);
|
||||
|
||||
/**
|
||||
* Restore EGL context that was previously saved using wlr_egl_save_current().
|
||||
*/
|
||||
bool wlr_egl_restore_context(struct wlr_egl_context *context);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue