mirror of
https://github.com/brl/mutter.git
synced 2025-08-04 15:45:54 +00:00
output: Move MetaGpu field to instance private
Set during construction only, retrieved using helper. https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1287
This commit is contained in:

committed by
Georges Basile Stavracas Neto

parent
2ebd43cba9
commit
f4fd92d8e8
@@ -151,7 +151,9 @@ meta_test_headless_monitor_connect (void)
|
||||
possible_crtcs = g_new0 (MetaCrtc *, 1);
|
||||
possible_crtcs[0] = g_list_first (test_setup->crtcs)->data;
|
||||
|
||||
output = g_object_new (META_TYPE_OUTPUT, NULL);
|
||||
output = g_object_new (META_TYPE_OUTPUT,
|
||||
"gpu", gpu,
|
||||
NULL);
|
||||
output->winsys_id = 1;
|
||||
output->name = g_strdup ("DP-1");
|
||||
output->vendor = g_strdup ("MetaProduct's Inc.");
|
||||
|
@@ -88,13 +88,9 @@ meta_monitor_manager_test_read_current (MetaMonitorManager *manager)
|
||||
MetaBackend *backend = meta_monitor_manager_get_backend (manager);
|
||||
MetaBackendTest *backend_test = META_BACKEND_TEST (backend);
|
||||
MetaGpu *gpu = meta_backend_test_get_gpu (backend_test);
|
||||
GList *l;
|
||||
|
||||
g_assert (manager_test->test_setup);
|
||||
|
||||
for (l = manager_test->test_setup->outputs; l; l = l->next)
|
||||
META_OUTPUT (l->data)->gpu = gpu;
|
||||
|
||||
meta_gpu_take_modes (gpu, manager_test->test_setup->modes);
|
||||
meta_gpu_take_crtcs (gpu, manager_test->test_setup->crtcs);
|
||||
meta_gpu_take_outputs (gpu, manager_test->test_setup->outputs);
|
||||
|
@@ -649,7 +649,9 @@ create_monitor_test_setup (MonitorTestCaseSetup *setup,
|
||||
if (!serial)
|
||||
serial = "0x123456";
|
||||
|
||||
output = g_object_new (META_TYPE_OUTPUT, NULL);
|
||||
output = g_object_new (META_TYPE_OUTPUT,
|
||||
"gpu", test_get_gpu (),
|
||||
NULL);
|
||||
|
||||
if (crtc)
|
||||
meta_output_assign_crtc (output, crtc);
|
||||
|
Reference in New Issue
Block a user