crtc: Make implementations inherit MetaCrtc

Just as with MetaOutput, instead of the home baked "inheritance" system,
using a gpointer and a GDestroyNotify function to keep the what
effectively is sub type details, make MetaCrtc an abstract derivable
type, and make the implementations inherit it.

https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1287
This commit is contained in:
Jonas Ådahl
2020-02-26 19:47:44 +01:00
committed by Georges Basile Stavracas Neto
parent 4a4f2d8264
commit 1ce9e379d9
19 changed files with 233 additions and 188 deletions

View File

@@ -560,7 +560,7 @@ create_monitor_test_setup (MonitorTestCaseSetup *setup,
{
MetaCrtc *crtc;
crtc = g_object_new (META_TYPE_CRTC,
crtc = g_object_new (META_TYPE_CRTC_TEST,
"id", i + 1,
"gpu", test_get_gpu (),
NULL);