MetaRendererNative: GLib:ify a few Cogl types

In another step getting rid of the duplications introduced by Cogl,
use the equivalent GLib types where Cogl types previously used. While
CoglBool is not a typedef to gboolean, they are both typedefs to int,
and we already use GLib's TRUE/FALSE to set them.

https://bugzilla.gnome.org/show_bug.cgi?id=773629
This commit is contained in:
Jonas Ådahl 2016-08-18 10:21:12 +08:00
parent 22f019826c
commit 8b810193dd

View File

@ -222,9 +222,9 @@ meta_onscreen_native_queue_swap_notify (CoglOnscreen *onscreen)
onscreen_native->pending_swap_notify = TRUE;
}
static CoglBool
static gboolean
meta_renderer_native_connect (CoglRenderer *cogl_renderer,
CoglError **error)
GError **error)
{
MetaBackend *backend = meta_get_backend ();
MetaRenderer *renderer = meta_backend_get_renderer (backend);
@ -267,9 +267,9 @@ fail:
return FALSE;
}
static CoglBool
static gboolean
meta_renderer_native_setup_egl_display (CoglDisplay *cogl_display,
CoglError **error)
GError **error)
{
CoglDisplayEGL *egl_display = cogl_display->winsys;
CoglRendererEGL *egl_renderer = cogl_display->renderer->winsys;
@ -290,9 +290,9 @@ meta_renderer_native_destroy_egl_display (CoglDisplay *cogl_display)
{
}
static CoglBool
static gboolean
meta_renderer_native_egl_context_created (CoglDisplay *cogl_display,
CoglError **error)
GError **error)
{
CoglDisplayEGL *egl_display = cogl_display->winsys;
CoglRenderer *cogl_renderer = cogl_display->renderer;
@ -643,9 +643,9 @@ meta_onscreen_native_swap_buffers_with_damage (CoglOnscreen *onscreen,
meta_onscreen_native_flip_crtcs (onscreen);
}
static CoglBool
static gboolean
meta_renderer_native_init_egl_context (CoglContext *cogl_context,
CoglError **error)
GError **error)
{
COGL_FLAGS_SET (cogl_context->features,
COGL_FEATURE_ID_SWAP_BUFFERS_EVENT, TRUE);
@ -716,9 +716,9 @@ meta_renderer_native_create_surface (MetaRendererNative *renderer_native,
return TRUE;
}
static CoglBool
static gboolean
meta_renderer_native_init_onscreen (CoglOnscreen *onscreen,
CoglError **error)
GError **error)
{
CoglFramebuffer *framebuffer = COGL_FRAMEBUFFER (onscreen);
CoglContext *cogl_context = framebuffer->context;
@ -1021,7 +1021,7 @@ meta_renderer_native_set_legacy_view_size (MetaRendererNative *renderer_native,
static const CoglWinsysVtable *
get_native_cogl_winsys_vtable (void)
{
static CoglBool vtable_inited = FALSE;
static gboolean vtable_inited = FALSE;
static CoglWinsysVtable vtable;
if (!vtable_inited)