crtc/kms: Remove page flip helper
The only thing it did was shuffle around arguments and calling a getter. lets just do that ourself in the call site. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1488>
This commit is contained in:
parent
f07d6d1f43
commit
94ab6d8736
@ -204,20 +204,6 @@ meta_crtc_kms_set_mode (MetaCrtcKms *crtc_kms,
|
||||
kms_mode);
|
||||
}
|
||||
|
||||
void
|
||||
meta_crtc_kms_page_flip (MetaCrtcKms *crtc_kms,
|
||||
const MetaKmsPageFlipFeedback *page_flip_feedback,
|
||||
MetaKmsPageFlipFlag flags,
|
||||
gpointer user_data,
|
||||
MetaKmsUpdate *kms_update)
|
||||
{
|
||||
meta_kms_update_page_flip (kms_update,
|
||||
meta_crtc_kms_get_kms_crtc (crtc_kms),
|
||||
page_flip_feedback,
|
||||
flags,
|
||||
user_data);
|
||||
}
|
||||
|
||||
MetaKmsCrtc *
|
||||
meta_crtc_kms_get_kms_crtc (MetaCrtcKms *crtc_kms)
|
||||
{
|
||||
|
@ -56,12 +56,6 @@ void meta_crtc_kms_assign_primary_plane (MetaCrtcKms *crtc_kms,
|
||||
void meta_crtc_kms_set_mode (MetaCrtcKms *crtc_kms,
|
||||
MetaKmsUpdate *kms_update);
|
||||
|
||||
void meta_crtc_kms_page_flip (MetaCrtcKms *crtc_kms,
|
||||
const MetaKmsPageFlipFeedback *page_flip_feedback,
|
||||
MetaKmsPageFlipFlag flags,
|
||||
gpointer user_data,
|
||||
MetaKmsUpdate *kms_update);
|
||||
|
||||
void meta_crtc_kms_set_is_underscanning (MetaCrtcKms *crtc_kms,
|
||||
gboolean is_underscanning);
|
||||
|
||||
|
@ -1291,11 +1291,11 @@ meta_onscreen_native_flip_crtc (CoglOnscreen *onscreen,
|
||||
}
|
||||
|
||||
meta_crtc_kms_assign_primary_plane (crtc_kms, buffer, kms_update);
|
||||
meta_crtc_kms_page_flip (crtc_kms,
|
||||
meta_kms_update_page_flip (kms_update,
|
||||
meta_crtc_kms_get_kms_crtc (crtc_kms),
|
||||
&page_flip_feedback,
|
||||
flags,
|
||||
g_object_ref (view),
|
||||
kms_update);
|
||||
g_object_ref (view));
|
||||
|
||||
break;
|
||||
#ifdef HAVE_EGL_DEVICE
|
||||
|
Loading…
Reference in New Issue
Block a user