renderer-native: Rename cogl vfunc implementations
Make the cogl vfunc functions have names that are globally discoverable. Calling the same function in every backend the same name causes code navigation tools to not function properly. Rename the affected functions to closer correspond to the style mutter uses. https://bugzilla.gnome.org/show_bug.cgi?id=768976
This commit is contained in:
parent
44b163e39b
commit
2eb843268a
@ -101,7 +101,7 @@ static const CoglWinsysEGLVtable _cogl_winsys_egl_vtable;
|
||||
static const CoglWinsysVtable *parent_vtable;
|
||||
|
||||
static void
|
||||
_cogl_winsys_renderer_disconnect (CoglRenderer *renderer)
|
||||
meta_renderer_native_disconnect (CoglRenderer *renderer)
|
||||
{
|
||||
CoglRendererEGL *egl_renderer = renderer->winsys;
|
||||
|
||||
@ -204,7 +204,7 @@ queue_swap_notify_for_onscreen (CoglOnscreen *onscreen)
|
||||
}
|
||||
|
||||
static CoglBool
|
||||
_cogl_winsys_renderer_connect (CoglRenderer *cogl_renderer,
|
||||
meta_renderer_native_connect (CoglRenderer *cogl_renderer,
|
||||
CoglError **error)
|
||||
{
|
||||
MetaBackend *backend = meta_get_backend ();
|
||||
@ -243,7 +243,7 @@ _cogl_winsys_renderer_connect (CoglRenderer *cogl_renderer,
|
||||
return TRUE;
|
||||
|
||||
fail:
|
||||
_cogl_winsys_renderer_disconnect (cogl_renderer);
|
||||
meta_renderer_native_disconnect (cogl_renderer);
|
||||
|
||||
return FALSE;
|
||||
}
|
||||
@ -261,7 +261,7 @@ setup_crtc_modes (CoglDisplay *display, int fb_id)
|
||||
}
|
||||
|
||||
static CoglBool
|
||||
_cogl_winsys_egl_display_setup (CoglDisplay *display,
|
||||
meta_renderer_native_setup_egl_display (CoglDisplay *display,
|
||||
CoglError **error)
|
||||
{
|
||||
CoglDisplayEGL *egl_display = display->winsys;
|
||||
@ -279,12 +279,12 @@ _cogl_winsys_egl_display_setup (CoglDisplay *display,
|
||||
}
|
||||
|
||||
static void
|
||||
_cogl_winsys_egl_display_destroy (CoglDisplay *display)
|
||||
meta_renderer_native_destroy_egl_display (CoglDisplay *display)
|
||||
{
|
||||
}
|
||||
|
||||
static CoglBool
|
||||
_cogl_winsys_egl_context_created (CoglDisplay *display,
|
||||
meta_renderer_native_egl_context_created (CoglDisplay *display,
|
||||
CoglError **error)
|
||||
{
|
||||
CoglDisplayEGL *egl_display = display->winsys;
|
||||
@ -338,7 +338,7 @@ _cogl_winsys_egl_context_created (CoglDisplay *display,
|
||||
}
|
||||
|
||||
static void
|
||||
_cogl_winsys_egl_cleanup_context (CoglDisplay *display)
|
||||
meta_renderer_native_egl_cleanup_context (CoglDisplay *display)
|
||||
{
|
||||
CoglDisplayEGL *egl_display = display->winsys;
|
||||
CoglRenderer *renderer = display->renderer;
|
||||
@ -372,7 +372,7 @@ flip_callback (void *user_data)
|
||||
}
|
||||
|
||||
static void
|
||||
_cogl_winsys_onscreen_swap_buffers_with_damage (CoglOnscreen *onscreen,
|
||||
meta_onscreen_native_swap_buffers_with_damage (CoglOnscreen *onscreen,
|
||||
const int *rectangles,
|
||||
int n_rectangles)
|
||||
{
|
||||
@ -477,7 +477,7 @@ _cogl_winsys_onscreen_swap_buffers_with_damage (CoglOnscreen *onscreen,
|
||||
}
|
||||
|
||||
static CoglBool
|
||||
_cogl_winsys_egl_context_init (CoglContext *context,
|
||||
meta_renderer_native_init_egl_context (CoglContext *context,
|
||||
CoglError **error)
|
||||
{
|
||||
COGL_FLAGS_SET (context->features,
|
||||
@ -494,7 +494,7 @@ _cogl_winsys_egl_context_init (CoglContext *context,
|
||||
}
|
||||
|
||||
static CoglBool
|
||||
_cogl_winsys_onscreen_init (CoglOnscreen *onscreen,
|
||||
meta_renderer_native_init_onscreen (CoglOnscreen *onscreen,
|
||||
CoglError **error)
|
||||
{
|
||||
CoglFramebuffer *framebuffer = COGL_FRAMEBUFFER (onscreen);
|
||||
@ -571,7 +571,7 @@ _cogl_winsys_onscreen_init (CoglOnscreen *onscreen,
|
||||
}
|
||||
|
||||
static void
|
||||
_cogl_winsys_onscreen_deinit (CoglOnscreen *onscreen)
|
||||
meta_renderer_native_release_onscreen (CoglOnscreen *onscreen)
|
||||
{
|
||||
CoglFramebuffer *framebuffer = COGL_FRAMEBUFFER (onscreen);
|
||||
CoglContext *context = framebuffer->context;
|
||||
@ -616,11 +616,11 @@ _cogl_winsys_onscreen_deinit (CoglOnscreen *onscreen)
|
||||
|
||||
static const CoglWinsysEGLVtable
|
||||
_cogl_winsys_egl_vtable = {
|
||||
.display_setup = _cogl_winsys_egl_display_setup,
|
||||
.display_destroy = _cogl_winsys_egl_display_destroy,
|
||||
.context_created = _cogl_winsys_egl_context_created,
|
||||
.cleanup_context = _cogl_winsys_egl_cleanup_context,
|
||||
.context_init = _cogl_winsys_egl_context_init
|
||||
.display_setup = meta_renderer_native_setup_egl_display,
|
||||
.display_destroy = meta_renderer_native_destroy_egl_display,
|
||||
.context_created = meta_renderer_native_egl_context_created,
|
||||
.cleanup_context = meta_renderer_native_egl_cleanup_context,
|
||||
.context_init = meta_renderer_native_init_egl_context
|
||||
};
|
||||
|
||||
struct gbm_device *
|
||||
@ -744,16 +744,16 @@ get_native_cogl_winsys_vtable (void)
|
||||
vtable.id = COGL_WINSYS_ID_CUSTOM;
|
||||
vtable.name = "EGL_KMS";
|
||||
|
||||
vtable.renderer_connect = _cogl_winsys_renderer_connect;
|
||||
vtable.renderer_disconnect = _cogl_winsys_renderer_disconnect;
|
||||
vtable.renderer_connect = meta_renderer_native_connect;
|
||||
vtable.renderer_disconnect = meta_renderer_native_disconnect;
|
||||
|
||||
vtable.onscreen_init = _cogl_winsys_onscreen_init;
|
||||
vtable.onscreen_deinit = _cogl_winsys_onscreen_deinit;
|
||||
vtable.onscreen_init = meta_renderer_native_init_onscreen;
|
||||
vtable.onscreen_deinit = meta_renderer_native_release_onscreen;
|
||||
|
||||
/* The KMS winsys doesn't support swap region */
|
||||
vtable.onscreen_swap_region = NULL;
|
||||
vtable.onscreen_swap_buffers_with_damage =
|
||||
_cogl_winsys_onscreen_swap_buffers_with_damage;
|
||||
meta_onscreen_native_swap_buffers_with_damage;
|
||||
|
||||
vtable_inited = TRUE;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user