diff options
author | Emmanuele Bassi <ebassi@gnome.org> | 2015-07-22 20:28:19 +0100 |
---|---|---|
committer | Emmanuele Bassi <ebassi@gnome.org> | 2015-07-22 20:28:19 +0100 |
commit | 812aba31e70003a7a11e48171e9f23648d46919c (patch) | |
tree | 5ff7715cf46229874300844411c3fec131bde555 | |
parent | c9080b3e2506915bc5f22453a18163e6ab52fc42 (diff) | |
download | cogl-812aba31e70003a7a11e48171e9f23648d46919c.tar.gz |
winsys: Drop xlib_get_visual_info from the vtable
We don't need the hack any more; CoglRenderer has the appropriate API
for the Xlib-based winsys backends.
-rw-r--r-- | cogl/winsys/cogl-winsys-egl-x11.c | 20 | ||||
-rw-r--r-- | cogl/winsys/cogl-winsys-glx.c | 24 | ||||
-rw-r--r-- | cogl/winsys/cogl-winsys-private.h | 5 |
3 files changed, 0 insertions, 49 deletions
diff --git a/cogl/winsys/cogl-winsys-egl-x11.c b/cogl/winsys/cogl-winsys-egl-x11.c index 0591ed8d..724a4d01 100644 --- a/cogl/winsys/cogl-winsys-egl-x11.c +++ b/cogl/winsys/cogl-winsys-egl-x11.c @@ -687,24 +687,6 @@ _cogl_winsys_egl_cleanup_context (CoglDisplay *display) } } -/* XXX: This is a particularly hacky _cogl_winsys interface... */ -static XVisualInfo * -_cogl_winsys_xlib_get_visual_info (void) -{ - CoglDisplayEGL *egl_display; - - _COGL_GET_CONTEXT (ctx, NULL); - - _COGL_RETURN_VAL_IF_FAIL (ctx->display->winsys, FALSE); - - egl_display = ctx->display->winsys; - - if (!egl_display->found_egl_config) - return NULL; - - return get_visual_info (ctx->display, egl_display->egl_config); -} - #ifdef EGL_KHR_image_pixmap static CoglBool @@ -851,8 +833,6 @@ _cogl_winsys_egl_xlib_get_vtable (void) vtable.onscreen_x11_get_window_xid = _cogl_winsys_onscreen_x11_get_window_xid; - vtable.xlib_get_visual_info = _cogl_winsys_xlib_get_visual_info; - #ifdef EGL_KHR_image_pixmap /* X11 tfp support... */ /* XXX: instead of having a rather monolithic winsys vtable we could diff --git a/cogl/winsys/cogl-winsys-glx.c b/cogl/winsys/cogl-winsys-glx.c index a37eb098..ae35c6af 100644 --- a/cogl/winsys/cogl-winsys-glx.c +++ b/cogl/winsys/cogl-winsys-glx.c @@ -2078,29 +2078,6 @@ _cogl_winsys_onscreen_set_resizable (CoglOnscreen *onscreen, XFree (size_hints); } -/* XXX: This is a particularly hacky _cogl_winsys interface... */ -static XVisualInfo * -_cogl_winsys_xlib_get_visual_info (void) -{ - CoglGLXDisplay *glx_display; - CoglXlibRenderer *xlib_renderer; - CoglGLXRenderer *glx_renderer; - - _COGL_GET_CONTEXT (ctx, NULL); - - _COGL_RETURN_VAL_IF_FAIL (ctx->display->winsys, FALSE); - - glx_display = ctx->display->winsys; - xlib_renderer = _cogl_xlib_renderer_get_data (ctx->display->renderer); - glx_renderer = ctx->display->renderer->winsys; - - if (!glx_display->found_fbconfig) - return NULL; - - return glx_renderer->glXGetVisualFromFBConfig (xlib_renderer->xdpy, - glx_display->fbconfig); -} - static CoglBool get_fbconfig_for_depth (CoglContext *context, unsigned int depth, @@ -2714,7 +2691,6 @@ static CoglWinsysVtable _cogl_winsys_vtable = .context_init = _cogl_winsys_context_init, .context_deinit = _cogl_winsys_context_deinit, .context_get_clock_time = _cogl_winsys_get_clock_time, - .xlib_get_visual_info = _cogl_winsys_xlib_get_visual_info, .onscreen_init = _cogl_winsys_onscreen_init, .onscreen_deinit = _cogl_winsys_onscreen_deinit, .onscreen_bind = _cogl_winsys_onscreen_bind, diff --git a/cogl/winsys/cogl-winsys-private.h b/cogl/winsys/cogl-winsys-private.h index 2c9cc981..2e2097fa 100644 --- a/cogl/winsys/cogl-winsys-private.h +++ b/cogl/winsys/cogl-winsys-private.h @@ -145,11 +145,6 @@ typedef struct _CoglWinsysVtable int (*onscreen_get_buffer_age) (CoglOnscreen *onscreen); -#ifdef COGL_HAS_XLIB_SUPPORT - XVisualInfo * - (*xlib_get_visual_info) (void); -#endif - uint32_t (*onscreen_x11_get_window_xid) (CoglOnscreen *onscreen); |