diff --git a/cogl/cogl/cogl-xlib-private.h b/cogl/cogl/cogl-xlib-private.h index 8bf23a7e1..317163fb2 100644 --- a/cogl/cogl/cogl-xlib-private.h +++ b/cogl/cogl/cogl-xlib-private.h @@ -45,7 +45,4 @@ struct _CoglXlibTrapState CoglXlibTrapState *old_state; }; -int -_cogl_xlib_get_damage_base (void); - #endif /* __COGL_XLIB_PRIVATE_H */ diff --git a/cogl/cogl/cogl-xlib.c b/cogl/cogl/cogl-xlib.c deleted file mode 100644 index feb684b37..000000000 --- a/cogl/cogl/cogl-xlib.c +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Cogl - * - * A Low Level GPU Graphics and Utilities API - * - * Copyright (C) 2010,2011 Intel Corporation. - * - * Permission is hereby granted, free of charge, to any person - * obtaining a copy of this software and associated documentation - * files (the "Software"), to deal in the Software without - * restriction, including without limitation the rights to use, copy, - * modify, merge, publish, distribute, sublicense, and/or sell copies - * of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be - * included in all copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, - * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF - * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND - * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS - * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN - * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN - * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - * - * Authors: - * Robert Bragg - * - */ - -#include "cogl-config.h" - -#include - -#include -#include -#include -#include -#include -#include - -#include -#include - -#include "cogl-xlib.h" - -/* FIXME: when we remove the last X11 based Clutter backend then we - * will get rid of these functions and instead rely on the equivalent - * _cogl_xlib_renderer API - */ - -int -_cogl_xlib_get_damage_base (void) -{ - CoglX11Renderer *x11_renderer; - _COGL_GET_CONTEXT (ctxt, -1); - - x11_renderer = - (CoglX11Renderer *) _cogl_xlib_renderer_get_data (ctxt->display->renderer); - return x11_renderer->damage_base; -} diff --git a/cogl/cogl/meson.build b/cogl/cogl/meson.build index f6c61f8c8..e4445c815 100644 --- a/cogl/cogl/meson.build +++ b/cogl/cogl/meson.build @@ -386,7 +386,6 @@ if have_x11 'cogl-xlib-private.h', 'cogl-xlib-renderer-private.h', 'cogl-xlib-renderer.c', - 'cogl-xlib.c', 'winsys/cogl-texture-pixmap-x11-private.h', 'winsys/cogl-texture-pixmap-x11.c', ] diff --git a/cogl/cogl/winsys/cogl-texture-pixmap-x11.c b/cogl/cogl/winsys/cogl-texture-pixmap-x11.c index 7b802d54f..b7eafab64 100644 --- a/cogl/cogl/winsys/cogl-texture-pixmap-x11.c +++ b/cogl/cogl/winsys/cogl-texture-pixmap-x11.c @@ -49,6 +49,8 @@ #include "cogl-renderer-private.h" #include "cogl-object-private.h" #include "cogl-xlib.h" +#include "cogl-xlib-renderer-private.h" +#include "cogl-x11-renderer-private.h" #include "cogl-private.h" #include "cogl-gtype-private.h" #include "driver/gl/cogl-texture-gl-private.h" @@ -230,6 +232,17 @@ process_damage_event (CoglTexturePixmapX11 *tex_pixmap, } } +static int +_cogl_xlib_get_damage_base (void) +{ + CoglX11Renderer *x11_renderer; + _COGL_GET_CONTEXT (ctxt, -1); + + x11_renderer = + (CoglX11Renderer *) _cogl_xlib_renderer_get_data (ctxt->display->renderer); + return x11_renderer->damage_base; +} + static CoglFilterReturn _cogl_texture_pixmap_x11_filter (XEvent *event, void *data) {