mirror of
https://github.com/brl/mutter.git
synced 2024-12-23 19:42:05 +00:00
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.
This commit is contained in:
parent
4a7762d6d7
commit
16bfa27d43
@ -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)
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user