mirror of
https://github.com/brl/mutter.git
synced 2025-01-23 18:09:10 +00:00
MetaRendererNative: Put gbm initialization in its own function
Separate gbm initialization from general renderer initialization. Do this even though no other initialization is done for now; later there will will be other types of rendering mode, initialized in their own functions. https://bugzilla.gnome.org/show_bug.cgi?id=773629
This commit is contained in:
parent
678ebbb7f6
commit
f7cd6af9c6
@ -1235,11 +1235,9 @@ meta_renderer_native_finalize (GObject *object)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static gboolean
|
static gboolean
|
||||||
meta_renderer_native_initable_init (GInitable *initable,
|
init_gbm (MetaRendererNative *renderer_native,
|
||||||
GCancellable *cancellable,
|
GError **error)
|
||||||
GError **error)
|
|
||||||
{
|
{
|
||||||
MetaRendererNative *renderer_native = META_RENDERER_NATIVE (initable);
|
|
||||||
MetaBackend *backend = meta_get_backend ();
|
MetaBackend *backend = meta_get_backend ();
|
||||||
MetaEgl *egl = meta_backend_get_egl (backend);
|
MetaEgl *egl = meta_backend_get_egl (backend);
|
||||||
struct gbm_device *gbm_device;
|
struct gbm_device *gbm_device;
|
||||||
@ -1268,6 +1266,16 @@ meta_renderer_native_initable_init (GInitable *initable,
|
|||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static gboolean
|
||||||
|
meta_renderer_native_initable_init (GInitable *initable,
|
||||||
|
GCancellable *cancellable,
|
||||||
|
GError **error)
|
||||||
|
{
|
||||||
|
MetaRendererNative *renderer_native = META_RENDERER_NATIVE (initable);
|
||||||
|
|
||||||
|
return init_gbm (renderer_native, error);
|
||||||
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
initable_iface_init (GInitableIface *initable_iface)
|
initable_iface_init (GInitableIface *initable_iface)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user