mirror of
https://github.com/brl/mutter.git
synced 2024-11-21 15:40:41 -05:00
renderer: Use 'add_view()' when adding CRTC views
This also changes the view construction path used by the renderer view to use the new 'add_view()' function, meaning we have a common entry point for views into the renderer, which will be useful later on. https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1285
This commit is contained in:
parent
1f895719b3
commit
57a2f7b4a3
@ -127,11 +127,10 @@ create_crtc_view (MetaLogicalMonitor *logical_monitor,
|
||||
gpointer user_data)
|
||||
{
|
||||
MetaRenderer *renderer = user_data;
|
||||
MetaRendererPrivate *priv = meta_renderer_get_instance_private (renderer);
|
||||
MetaRendererView *view;
|
||||
|
||||
view = meta_renderer_create_view (renderer, logical_monitor, output, crtc);
|
||||
priv->views = g_list_append (priv->views, view);
|
||||
meta_renderer_add_view (renderer, view);
|
||||
}
|
||||
|
||||
static void
|
||||
|
Loading…
Reference in New Issue
Block a user