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:
Jonas Ådahl 2020-10-01 17:20:22 +02:00 committed by Marge Bot
parent f07d6d1f43
commit 94ab6d8736
3 changed files with 5 additions and 25 deletions

View File

@ -204,20 +204,6 @@ meta_crtc_kms_set_mode (MetaCrtcKms *crtc_kms,
kms_mode); 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 * MetaKmsCrtc *
meta_crtc_kms_get_kms_crtc (MetaCrtcKms *crtc_kms) meta_crtc_kms_get_kms_crtc (MetaCrtcKms *crtc_kms)
{ {

View File

@ -56,12 +56,6 @@ void meta_crtc_kms_assign_primary_plane (MetaCrtcKms *crtc_kms,
void meta_crtc_kms_set_mode (MetaCrtcKms *crtc_kms, void meta_crtc_kms_set_mode (MetaCrtcKms *crtc_kms,
MetaKmsUpdate *kms_update); 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, void meta_crtc_kms_set_is_underscanning (MetaCrtcKms *crtc_kms,
gboolean is_underscanning); gboolean is_underscanning);

View File

@ -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_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, &page_flip_feedback,
flags, flags,
g_object_ref (view), g_object_ref (view));
kms_update);
break; break;
#ifdef HAVE_EGL_DEVICE #ifdef HAVE_EGL_DEVICE