mirror of
https://github.com/brl/mutter.git
synced 2024-11-25 09:30:45 -05:00
cogl-gtype: add missing gtype macros in intermediate macros
Reviewed-by: Neil Roberts <neil@linux.intel.com>
This commit is contained in:
parent
d9c8570f14
commit
3aee3f63c4
@ -119,7 +119,7 @@ void
|
||||
_cogl_buffer_register_buffer_type (const CoglObjectClass *klass);
|
||||
|
||||
#define COGL_BUFFER_DEFINE(TypeName, type_name) \
|
||||
COGL_OBJECT_DEFINE_WITH_CODE_GTYPE \
|
||||
COGL_OBJECT_DEFINE_WITH_CODE \
|
||||
(TypeName, type_name, \
|
||||
_cogl_buffer_register_buffer_type (&_cogl_##type_name##_class))
|
||||
|
||||
|
@ -65,9 +65,9 @@ static CoglUserDataKey wire_pipeline_key;
|
||||
|
||||
static void _cogl_offscreen_free (CoglOffscreen *offscreen);
|
||||
|
||||
COGL_OBJECT_DEFINE_WITH_CODE (Offscreen, offscreen,
|
||||
_cogl_offscreen_class.virt_unref =
|
||||
_cogl_framebuffer_unref);
|
||||
COGL_OBJECT_DEFINE_WITH_CODE_GTYPE (Offscreen, offscreen,
|
||||
_cogl_offscreen_class.virt_unref =
|
||||
_cogl_framebuffer_unref);
|
||||
COGL_GTYPE_DEFINE_CLASS (Offscreen, offscreen);
|
||||
COGL_OBJECT_DEFINE_DEPRECATED_REF_COUNTING (offscreen);
|
||||
COGL_GTYPE_DEFINE_INTERFACE (Framebuffer, framebuffer);
|
||||
|
@ -221,9 +221,7 @@ cogl_is_##type_name (void *object) \
|
||||
|
||||
#define COGL_OBJECT_DEFINE_WITH_CODE(TypeName, type_name, code) \
|
||||
\
|
||||
COGL_OBJECT_COMMON_DEFINE_WITH_CODE(TypeName, \
|
||||
type_name, \
|
||||
do { code; } while (0);) \
|
||||
COGL_OBJECT_COMMON_DEFINE_WITH_CODE(TypeName, type_name, code) \
|
||||
\
|
||||
CoglBool \
|
||||
cogl_is_##type_name (void *object) \
|
||||
|
@ -46,9 +46,9 @@
|
||||
|
||||
static void _cogl_onscreen_free (CoglOnscreen *onscreen);
|
||||
|
||||
COGL_OBJECT_DEFINE_WITH_CODE (Onscreen, onscreen,
|
||||
_cogl_onscreen_class.virt_unref =
|
||||
_cogl_framebuffer_unref);
|
||||
COGL_OBJECT_DEFINE_WITH_CODE_GTYPE (Onscreen, onscreen,
|
||||
_cogl_onscreen_class.virt_unref =
|
||||
_cogl_framebuffer_unref);
|
||||
COGL_GTYPE_DEFINE_CLASS (Onscreen, onscreen,
|
||||
COGL_GTYPE_IMPLEMENT_INTERFACE (framebuffer));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user