From f322bd4a53abaf2a69c859625cefe0ddb8f43691 Mon Sep 17 00:00:00 2001 From: Yuxuan Shui Date: Mon, 31 Dec 2018 01:53:25 +0000 Subject: [PATCH] Remove backend/gl/glx.h Signed-off-by: Yuxuan Shui --- src/backend/gl/glx.c | 2 +- src/backend/gl/glx.h | 54 -------------------------------------------- 2 files changed, 1 insertion(+), 55 deletions(-) delete mode 100644 src/backend/gl/glx.h diff --git a/src/backend/gl/glx.c b/src/backend/gl/glx.c index c24ca196..76f6b348 100644 --- a/src/backend/gl/glx.c +++ b/src/backend/gl/glx.c @@ -9,7 +9,7 @@ * */ -#include "backend/gl/glx.h" +#include #include #include "backend/backend.h" #include "backend/gl/gl_common.h" diff --git a/src/backend/gl/glx.h b/src/backend/gl/glx.h deleted file mode 100644 index 1dfeea14..00000000 --- a/src/backend/gl/glx.h +++ /dev/null @@ -1,54 +0,0 @@ -// SPDX-License-Identifier: MIT -/* - * Compton - a compositor for X11 - * - * Based on `xcompmgr` - Copyright (c) 2003, Keith Packard - * - * Copyright (c) 2011-2013, Christopher Jeffrey - * See LICENSE-mit for more information. - * - */ - -#pragma once - -#include -#include -#include -#include -#include -#include - -#include "common.h" - -#if 0 -struct _glx_data; -struct _glx_win_data; - -void -glx_destroy(session_t *ps); - -bool -glx_reinit(session_t *ps, bool need_render); - -void -glx_on_root_change(session_t *ps); - -bool -glx_bind_pixmap(session_t *ps, glx_texture_t **pptex, xcb_pixmap_t pixmap, - unsigned width, unsigned height, unsigned depth); - -void -glx_release_pixmap(struct _glx_data *, Display *, struct _glx_win_data *); - -void glx_paint_pre(session_t *ps, region_t *preg) -__attribute__((nonnull(1, 2))); - -/** - * Check if a texture is binded, or is binded to the given pixmap. - */ -static inline bool -glx_tex_binded(const glx_texture_t *ptex, xcb_pixmap_t pixmap) { - return ptex && ptex->glpixmap && ptex->texture - && (!pixmap || pixmap == ptex->pixmap); -} -#endif