output: Make implementations inherit 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 MetaOutput 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 16:47:03 +01:00
committed by Georges Basile Stavracas Neto
parent 4920b5064d
commit 4a4f2d8264
18 changed files with 176 additions and 151 deletions

View File

@ -1436,7 +1436,8 @@ meta_onscreen_native_set_crtc_mode (CoglOnscreen *onscreen,
}
meta_crtc_kms_set_mode (onscreen_native->crtc, kms_update);
meta_output_kms_set_underscan (onscreen_native->output, kms_update);
meta_output_kms_set_underscan (META_OUTPUT_KMS (onscreen_native->output),
kms_update);
}
static void