cogl: Port (OnscreenDirtyClosure|FrameClosure) away from Cogl boxed type

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3193>
This commit is contained in:
Bilal Elmoussaoui 2023-08-18 12:42:48 +02:00 committed by Marge Bot
parent 60dbceac4f
commit 82ca43c3b6
2 changed files with 13 additions and 11 deletions

View File

@ -70,13 +70,15 @@ cogl_dummy_free (gpointer data)
{
}
COGL_GTYPE_DEFINE_BOXED (FrameClosure, frame_closure,
G_DEFINE_BOXED_TYPE (CoglFrameClosure,
cogl_frame_closure,
cogl_dummy_copy,
cogl_dummy_free);
COGL_GTYPE_DEFINE_BOXED (OnscreenDirtyClosure,
onscreen_dirty_closure,
cogl_dummy_free)
G_DEFINE_BOXED_TYPE (CoglOnscreenDirtyClosure,
cogl_onscreen_dirty_closure,
cogl_dummy_copy,
cogl_dummy_free);
cogl_dummy_free)
G_DEFINE_QUARK (cogl-scanout-error-quark, cogl_scanout_error)

View File

@ -398,12 +398,12 @@ typedef void (*CoglFrameCallback) (CoglOnscreen *onscreen,
typedef struct _CoglClosure CoglFrameClosure;
/**
* cogl_frame_closure_get_gtype:
* cogl_frame_closure_get_type:
*
* Returns: a #GType that can be used with the GLib type system.
*/
COGL_EXPORT
GType cogl_frame_closure_get_gtype (void);
GType cogl_frame_closure_get_type (void);
/**
* cogl_onscreen_add_frame_callback:
@ -510,12 +510,12 @@ typedef void (*CoglOnscreenDirtyCallback) (CoglOnscreen *onscreen,
typedef struct _CoglClosure CoglOnscreenDirtyClosure;
/**
* cogl_onscreen_dirty_closure_get_gtype:
* cogl_onscreen_dirty_closure_get_type:
*
* Returns: a #GType that can be used with the GLib type system.
*/
COGL_EXPORT
GType cogl_onscreen_dirty_closure_get_gtype (void);
GType cogl_onscreen_dirty_closure_get_type (void);
/**
* cogl_onscreen_add_dirty_callback: