mirror of
https://github.com/brl/mutter.git
synced 2024-12-26 04:42:14 +00:00
cogl: Unify HAS_X11/HAS_XLIB build configs
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2354>
This commit is contained in:
parent
9ba510646c
commit
bd94adaf74
@ -42,8 +42,6 @@
|
||||
#mesondefine COGL_HAS_EGL_PLATFORM_XLIB_SUPPORT
|
||||
#mesondefine COGL_HAS_EGL_SUPPORT
|
||||
#mesondefine COGL_HAS_X11
|
||||
#mesondefine COGL_HAS_X11_SUPPORT
|
||||
#mesondefine COGL_HAS_XLIB
|
||||
#mesondefine COGL_HAS_XLIB_SUPPORT
|
||||
|
||||
#mesondefine COGL_HAS_TRACING
|
||||
|
@ -45,7 +45,7 @@
|
||||
#if defined (COGL_HAS_GLX_SUPPORT)
|
||||
#include <cogl/winsys/cogl-onscreen-glx.h>
|
||||
#endif
|
||||
#if defined (COGL_HAS_XLIB_SUPPORT)
|
||||
#if defined (COGL_HAS_XLIB)
|
||||
#include <cogl/winsys/cogl-onscreen-xlib.h>
|
||||
#endif
|
||||
#ifdef COGL_HAS_X11
|
||||
|
@ -63,7 +63,7 @@ struct _CoglRenderer
|
||||
|
||||
GList *outputs;
|
||||
|
||||
#ifdef COGL_HAS_XLIB_SUPPORT
|
||||
#ifdef COGL_HAS_XLIB
|
||||
Display *foreign_xdpy;
|
||||
gboolean xlib_enable_event_retrieval;
|
||||
gboolean xlib_want_reset_on_video_memory_purge;
|
||||
|
@ -55,7 +55,7 @@
|
||||
#include "winsys/cogl-winsys-glx-private.h"
|
||||
#endif
|
||||
|
||||
#ifdef COGL_HAS_XLIB_SUPPORT
|
||||
#ifdef COGL_HAS_XLIB
|
||||
#include "cogl-xlib-renderer.h"
|
||||
#endif
|
||||
|
||||
@ -202,14 +202,14 @@ cogl_renderer_new (void)
|
||||
|
||||
_cogl_list_init (&renderer->idle_closures);
|
||||
|
||||
#ifdef COGL_HAS_XLIB_SUPPORT
|
||||
#ifdef COGL_HAS_XLIB
|
||||
renderer->xlib_enable_event_retrieval = TRUE;
|
||||
#endif
|
||||
|
||||
return _cogl_renderer_object_new (renderer);
|
||||
}
|
||||
|
||||
#ifdef COGL_HAS_XLIB_SUPPORT
|
||||
#ifdef COGL_HAS_XLIB
|
||||
void
|
||||
cogl_xlib_renderer_set_foreign_display (CoglRenderer *renderer,
|
||||
Display *xdisplay)
|
||||
@ -243,7 +243,7 @@ cogl_xlib_renderer_request_reset_on_video_memory_purge (CoglRenderer *renderer,
|
||||
|
||||
renderer->xlib_want_reset_on_video_memory_purge = enable;
|
||||
}
|
||||
#endif /* COGL_HAS_XLIB_SUPPORT */
|
||||
#endif /* COGL_HAS_XLIB */
|
||||
|
||||
gboolean
|
||||
cogl_renderer_check_onscreen_template (CoglRenderer *renderer,
|
||||
|
@ -40,7 +40,7 @@
|
||||
#include "cogl-context-private.h"
|
||||
#include "cogl-framebuffer-private.h"
|
||||
#include "cogl-onscreen-private.h"
|
||||
#ifdef COGL_HAS_XLIB_SUPPORT
|
||||
#ifdef COGL_HAS_XLIB
|
||||
#include "cogl-xlib-renderer.h"
|
||||
#endif
|
||||
#include "winsys/cogl-winsys-private.h"
|
||||
|
@ -8,9 +8,7 @@ cdata.set('COGL_HAS_GLX_SUPPORT', have_glx)
|
||||
cdata.set('COGL_HAS_EGL_PLATFORM_XLIB_SUPPORT', have_egl_xlib)
|
||||
cdata.set('COGL_HAS_EGL_SUPPORT', have_egl)
|
||||
cdata.set('COGL_HAS_X11', have_x11)
|
||||
cdata.set('COGL_HAS_X11_SUPPORT', have_x11)
|
||||
cdata.set('COGL_HAS_XLIB', have_x11_client)
|
||||
cdata.set('COGL_HAS_XLIB_SUPPORT', have_x11_client)
|
||||
cdata.set('COGL_HAS_TRACING', have_profiler)
|
||||
|
||||
cogl_defines_h = configure_file(
|
||||
|
@ -34,11 +34,11 @@
|
||||
#include "cogl-renderer.h"
|
||||
#include "cogl-scanout.h"
|
||||
|
||||
#ifdef COGL_HAS_XLIB_SUPPORT
|
||||
#ifdef COGL_HAS_XLIB
|
||||
#include "cogl-texture-pixmap-x11-private.h"
|
||||
#endif
|
||||
|
||||
#ifdef COGL_HAS_XLIB_SUPPORT
|
||||
#ifdef COGL_HAS_XLIB
|
||||
#include <X11/Xutil.h>
|
||||
#include "cogl-texture-pixmap-x11-private.h"
|
||||
#endif
|
||||
@ -114,7 +114,7 @@ typedef struct _CoglWinsysVtable
|
||||
|
||||
/* Optional functions */
|
||||
|
||||
#ifdef COGL_HAS_XLIB_SUPPORT
|
||||
#ifdef COGL_HAS_XLIB
|
||||
gboolean
|
||||
(*texture_pixmap_x11_create) (CoglTexturePixmapX11 *tex_pixmap);
|
||||
void
|
||||
|
Loading…
Reference in New Issue
Block a user