native: Remove left-over flip waiting functionality

With the frame clocks split up, we never wait for page flip callbacks
anymore, so remove the functions that implement that.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1488>
This commit is contained in:
Jonas Ådahl 2020-07-16 15:17:34 +02:00 committed by Marge Bot
parent 9d7be40502
commit 837501ab25
3 changed files with 0 additions and 19 deletions

View File

@ -1120,15 +1120,6 @@ meta_kms_impl_simple_discard_pending_page_flips (MetaKmsImpl *impl)
g_source_destroy); g_source_destroy);
} }
static void
meta_kms_impl_simple_dispatch_idle (MetaKmsImpl *impl)
{
MetaKmsImplSimple *impl_simple = META_KMS_IMPL_SIMPLE (impl);
if (impl_simple->mode_set_fallback_feedback_source)
mode_set_fallback_feedback_idle (impl_simple);
}
static void static void
meta_kms_impl_simple_notify_device_created (MetaKmsImpl *impl, meta_kms_impl_simple_notify_device_created (MetaKmsImpl *impl,
MetaKmsDevice *device) MetaKmsDevice *device)
@ -1189,6 +1180,5 @@ meta_kms_impl_simple_class_init (MetaKmsImplSimpleClass *klass)
impl_class->process_update = meta_kms_impl_simple_process_update; impl_class->process_update = meta_kms_impl_simple_process_update;
impl_class->handle_page_flip_callback = meta_kms_impl_simple_handle_page_flip_callback; impl_class->handle_page_flip_callback = meta_kms_impl_simple_handle_page_flip_callback;
impl_class->discard_pending_page_flips = meta_kms_impl_simple_discard_pending_page_flips; impl_class->discard_pending_page_flips = meta_kms_impl_simple_discard_pending_page_flips;
impl_class->dispatch_idle = meta_kms_impl_simple_dispatch_idle;
impl_class->notify_device_created = meta_kms_impl_simple_notify_device_created; impl_class->notify_device_created = meta_kms_impl_simple_notify_device_created;
} }

View File

@ -65,12 +65,6 @@ meta_kms_impl_discard_pending_page_flips (MetaKmsImpl *impl)
META_KMS_IMPL_GET_CLASS (impl)->discard_pending_page_flips (impl); META_KMS_IMPL_GET_CLASS (impl)->discard_pending_page_flips (impl);
} }
void
meta_kms_impl_dispatch_idle (MetaKmsImpl *impl)
{
META_KMS_IMPL_GET_CLASS (impl)->dispatch_idle (impl);
}
void void
meta_kms_impl_notify_device_created (MetaKmsImpl *impl, meta_kms_impl_notify_device_created (MetaKmsImpl *impl,
MetaKmsDevice *device) MetaKmsDevice *device)

View File

@ -38,7 +38,6 @@ struct _MetaKmsImplClass
void (* handle_page_flip_callback) (MetaKmsImpl *impl, void (* handle_page_flip_callback) (MetaKmsImpl *impl,
MetaKmsPageFlipData *page_flip_data); MetaKmsPageFlipData *page_flip_data);
void (* discard_pending_page_flips) (MetaKmsImpl *impl); void (* discard_pending_page_flips) (MetaKmsImpl *impl);
void (* dispatch_idle) (MetaKmsImpl *impl);
void (* notify_device_created) (MetaKmsImpl *impl, void (* notify_device_created) (MetaKmsImpl *impl,
MetaKmsDevice *impl_device); MetaKmsDevice *impl_device);
}; };
@ -53,8 +52,6 @@ void meta_kms_impl_handle_page_flip_callback (MetaKmsImpl *impl,
void meta_kms_impl_discard_pending_page_flips (MetaKmsImpl *impl); void meta_kms_impl_discard_pending_page_flips (MetaKmsImpl *impl);
void meta_kms_impl_dispatch_idle (MetaKmsImpl *impl);
void meta_kms_impl_notify_device_created (MetaKmsImpl *impl, void meta_kms_impl_notify_device_created (MetaKmsImpl *impl,
MetaKmsDevice *impl_device); MetaKmsDevice *impl_device);