1
0
Fork 0

cogl/glib-source: Remove no longer useful API

It was only useful when Cogl was a separate library

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3910>
This commit is contained in:
Bilal Elmoussaoui 2024-07-27 10:10:40 +02:00 committed by Marge Bot
parent 5a6d2266e4
commit e90d2e845e
3 changed files with 6 additions and 38 deletions

View file

@ -255,7 +255,7 @@ clutter_backend_real_create_context (ClutterBackend *backend,
return FALSE;
}
backend->cogl_source = cogl_glib_source_new (backend->cogl_context, G_PRIORITY_DEFAULT);
backend->cogl_source = cogl_glib_source_new (backend->cogl_renderer, G_PRIORITY_DEFAULT);
g_source_attach (backend->cogl_source, NULL);
return TRUE;

View file

@ -96,8 +96,8 @@ cogl_glib_source_funcs =
};
GSource *
cogl_glib_renderer_source_new (CoglRenderer *renderer,
int priority)
cogl_glib_source_new (CoglRenderer *renderer,
int priority)
{
GSource *source;
CoglGLibSource *cogl_source;
@ -114,11 +114,3 @@ cogl_glib_renderer_source_new (CoglRenderer *renderer,
return source;
}
GSource *
cogl_glib_source_new (CoglContext *context,
int priority)
{
return cogl_glib_renderer_source_new (cogl_context_get_renderer (context),
priority);
}

View file

@ -42,40 +42,16 @@ G_BEGIN_DECLS
/**
* cogl_glib_source_new:
* @context: A #CoglContext
* @renderer: A #CoglRenderer
* @priority: The priority of the #GSource
*
* Creates a #GSource which handles Cogl's internal system event
* processing.
*
* Applications that manually connect to a #CoglRenderer before they
* create a #CoglContext should instead use
* cogl_glib_renderer_source_new() so that events may be dispatched
* before a context has been created. In that case you don't need to
* use this api in addition later, it is simply enough to use
* cogl_glib_renderer_source_new() instead.
*
* This api is actually just a thin convenience wrapper around
* cogl_glib_renderer_source_new()
*
* Return value: a new #GSource
*/
COGL_EXPORT GSource *
cogl_glib_source_new (CoglContext *context,
int priority);
/**
* cogl_glib_renderer_source_new:
* @renderer: A #CoglRenderer
* @priority: The priority of the #GSource
*
* Creates a #GSource which handles Cogl's internal system event
* processing
*
* Return value: a new #GSource
*/
COGL_EXPORT GSource *
cogl_glib_renderer_source_new (CoglRenderer *renderer,
int priority);
cogl_glib_source_new (CoglRenderer *renderer,
int priority);
G_END_DECLS