[clutter] cogl-winsys: Move _cogl_winsys_has_feature to cogl-winsys.c
- From: Neil Roberts <nroberts src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [clutter] cogl-winsys: Move _cogl_winsys_has_feature to cogl-winsys.c
- Date: Wed, 20 Apr 2011 17:23:01 +0000 (UTC)
commit b061f73702b658ec40e174d1cfe2d0c8efa2108d
Author: Neil Roberts <neil linux intel com>
Date: Fri Apr 15 16:03:19 2011 +0100
cogl-winsys: Move _cogl_winsys_has_feature to cogl-winsys.c
The code for _cogl_winsys_has_feature will be identical in all of the
winsys backends for the time being, so it seems to make sense to have
it in the common cogl-winsys.c file.
clutter/cogl/cogl/winsys/cogl-winsys-glx.c | 9 ---------
clutter/cogl/cogl/winsys/cogl-winsys.c | 9 +++++++++
2 files changed, 9 insertions(+), 9 deletions(-)
---
diff --git a/clutter/cogl/cogl/winsys/cogl-winsys-glx.c b/clutter/cogl/cogl/winsys/cogl-winsys-glx.c
index f694448..c8c18c0 100644
--- a/clutter/cogl/cogl/winsys/cogl-winsys-glx.c
+++ b/clutter/cogl/cogl/winsys/cogl-winsys-glx.c
@@ -1308,15 +1308,6 @@ _cogl_winsys_onscreen_update_swap_throttled (CoglOnscreen *onscreen)
_cogl_winsys_onscreen_bind (onscreen);
}
-/* FIXME: we should distinguish renderer and context features */
-gboolean
-_cogl_winsys_has_feature (CoglWinsysFeature feature)
-{
- _COGL_GET_CONTEXT (ctx, FALSE);
-
- return COGL_FLAGS_GET (ctx->winsys_features, feature);
-}
-
/* XXX: This is a particularly hacky _cogl_winsys interface... */
XVisualInfo *
_cogl_winsys_xlib_get_visual_info (void)
diff --git a/clutter/cogl/cogl/winsys/cogl-winsys.c b/clutter/cogl/cogl/winsys/cogl-winsys.c
index e59063a..547ea5a 100644
--- a/clutter/cogl/cogl/winsys/cogl-winsys.c
+++ b/clutter/cogl/cogl/winsys/cogl-winsys.c
@@ -27,6 +27,7 @@
#endif
#include "cogl.h"
+#include "cogl-context-private.h"
GQuark
_cogl_winsys_error_quark (void)
@@ -34,3 +35,11 @@ _cogl_winsys_error_quark (void)
return g_quark_from_static_string ("cogl-winsys-error-quark");
}
+/* FIXME: we should distinguish renderer and context features */
+gboolean
+_cogl_winsys_has_feature (CoglWinsysFeature feature)
+{
+ _COGL_GET_CONTEXT (ctx, FALSE);
+
+ return COGL_FLAGS_GET (ctx->winsys_features, feature);
+}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]