clutter/color-state: Pass the ClutterContext when constructing

This will be used to cache pipeline snippets shared by multiple color
states.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3433>
This commit is contained in:
Jonas Ådahl
2024-05-10 14:57:52 +02:00
committed by Sebastian Wick
parent 4a07242fed
commit d7bbc9712f
5 changed files with 54 additions and 8 deletions

View File

@ -358,7 +358,9 @@ meta_stage_new (MetaBackend *backend)
MetaStage *stage;
MetaMonitorManager *monitor_manager;
stage = g_object_new (META_TYPE_STAGE, NULL);
stage = g_object_new (META_TYPE_STAGE,
"context", meta_backend_get_clutter_context (backend),
NULL);
stage->backend = backend;
monitor_manager = meta_backend_get_monitor_manager (backend);