kms: Remove dead MetaKmsPageFlipListenerFlag type

Unused since 02b1cfe08f ("onscreen/native: Handle unexpected scanout
failures async").

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3389>
This commit is contained in:
Michel Dänzer 2023-11-12 15:10:13 +01:00 committed by Marge Bot
parent e8a213beef
commit 75d00027ca
12 changed files with 1 additions and 27 deletions

View File

@ -420,7 +420,6 @@ maybe_update_cursor_plane (MetaKmsCursorManagerImpl *cursor_manager_impl,
meta_kms_update_add_page_flip_listener (update, meta_kms_update_add_page_flip_listener (update,
crtc, crtc,
&cursor_page_flip_listener_vtable, &cursor_page_flip_listener_vtable,
META_KMS_PAGE_FLIP_LISTENER_FLAG_NONE,
meta_thread_impl_get_main_context (thread_impl), meta_thread_impl_get_main_context (thread_impl),
crtc_state_impl_ref (crtc_state_impl), crtc_state_impl_ref (crtc_state_impl),
(GDestroyNotify) crtc_state_impl_unref); (GDestroyNotify) crtc_state_impl_unref);

View File

@ -789,7 +789,6 @@ process_page_flip_listener (MetaKmsImplDevice *impl_device,
listener_destroy_notify = g_steal_pointer (&listener->destroy_notify); listener_destroy_notify = g_steal_pointer (&listener->destroy_notify);
meta_kms_page_flip_data_add_listener (page_flip_data, meta_kms_page_flip_data_add_listener (page_flip_data,
listener->vtable, listener->vtable,
listener->flags,
listener->main_context, listener->main_context,
listener_user_data, listener_user_data,
listener_destroy_notify); listener_destroy_notify);

View File

@ -1103,7 +1103,6 @@ generate_page_flip_datas (MetaKmsImplDevice *impl_device,
destroy_notify = g_steal_pointer (&listener->destroy_notify); destroy_notify = g_steal_pointer (&listener->destroy_notify);
meta_kms_page_flip_data_add_listener (page_flip_data, meta_kms_page_flip_data_add_listener (page_flip_data,
listener->vtable, listener->vtable,
listener->flags,
listener->main_context, listener->main_context,
user_data, user_data,
destroy_notify); destroy_notify);
@ -1126,7 +1125,6 @@ generate_page_flip_datas (MetaKmsImplDevice *impl_device,
g_steal_pointer (&other_listener->destroy_notify); g_steal_pointer (&other_listener->destroy_notify);
meta_kms_page_flip_data_add_listener (page_flip_data, meta_kms_page_flip_data_add_listener (page_flip_data,
other_listener->vtable, other_listener->vtable,
other_listener->flags,
other_listener->main_context, other_listener->main_context,
other_user_data, other_user_data,
other_destroy_notify); other_destroy_notify);

View File

@ -1310,7 +1310,6 @@ do_process (MetaKmsImplDevice *impl_device,
meta_kms_update_add_page_flip_listener (update, meta_kms_update_add_page_flip_listener (update,
crtc_frame->crtc, crtc_frame->crtc,
&crtc_page_flip_listener_vtable, &crtc_page_flip_listener_vtable,
META_KMS_PAGE_FLIP_LISTENER_FLAG_NONE,
thread_context, thread_context,
crtc_frame, NULL); crtc_frame, NULL);
crtc_frame->pending_page_flip = TRUE; crtc_frame->pending_page_flip = TRUE;

View File

@ -34,7 +34,6 @@ void meta_kms_page_flip_data_unref (MetaKmsPageFlipData *page_flip_data);
void meta_kms_page_flip_data_add_listener (MetaKmsPageFlipData *page_flip_data, void meta_kms_page_flip_data_add_listener (MetaKmsPageFlipData *page_flip_data,
const MetaKmsPageFlipListenerVtable *vtable, const MetaKmsPageFlipListenerVtable *vtable,
MetaKmsPageFlipListenerFlag flags,
GMainContext *main_context, GMainContext *main_context,
gpointer user_data, gpointer user_data,
GDestroyNotify destroy_notify); GDestroyNotify destroy_notify);

View File

@ -27,7 +27,6 @@
typedef struct _MetaKmsPageFlipClosure typedef struct _MetaKmsPageFlipClosure
{ {
const MetaKmsPageFlipListenerVtable *vtable; const MetaKmsPageFlipListenerVtable *vtable;
MetaKmsPageFlipListenerFlag flags;
GMainContext *main_context; GMainContext *main_context;
gpointer user_data; gpointer user_data;
GDestroyNotify destroy_notify; GDestroyNotify destroy_notify;
@ -55,7 +54,6 @@ struct _MetaKmsPageFlipData
static MetaKmsPageFlipClosure * static MetaKmsPageFlipClosure *
meta_kms_page_flip_closure_new (const MetaKmsPageFlipListenerVtable *vtable, meta_kms_page_flip_closure_new (const MetaKmsPageFlipListenerVtable *vtable,
MetaKmsPageFlipListenerFlag flags,
GMainContext *main_context, GMainContext *main_context,
gpointer user_data, gpointer user_data,
GDestroyNotify destroy_notify) GDestroyNotify destroy_notify)
@ -65,7 +63,6 @@ meta_kms_page_flip_closure_new (const MetaKmsPageFlipListenerVtable *vtable,
closure = g_new0 (MetaKmsPageFlipClosure, 1); closure = g_new0 (MetaKmsPageFlipClosure, 1);
*closure = (MetaKmsPageFlipClosure) { *closure = (MetaKmsPageFlipClosure) {
.vtable = vtable, .vtable = vtable,
.flags = flags,
.main_context = main_context, .main_context = main_context,
.user_data = user_data, .user_data = user_data,
.destroy_notify = destroy_notify, .destroy_notify = destroy_notify,
@ -131,14 +128,13 @@ meta_kms_page_flip_data_unref (MetaKmsPageFlipData *page_flip_data)
void void
meta_kms_page_flip_data_add_listener (MetaKmsPageFlipData *page_flip_data, meta_kms_page_flip_data_add_listener (MetaKmsPageFlipData *page_flip_data,
const MetaKmsPageFlipListenerVtable *vtable, const MetaKmsPageFlipListenerVtable *vtable,
MetaKmsPageFlipListenerFlag flags,
GMainContext *main_context, GMainContext *main_context,
gpointer user_data, gpointer user_data,
GDestroyNotify destroy_notify) GDestroyNotify destroy_notify)
{ {
MetaKmsPageFlipClosure *closure; MetaKmsPageFlipClosure *closure;
closure = meta_kms_page_flip_closure_new (vtable, flags, closure = meta_kms_page_flip_closure_new (vtable,
main_context, main_context,
user_data, user_data,
destroy_notify); destroy_notify);

View File

@ -35,7 +35,6 @@ typedef struct _MetaKmsMode MetaKmsMode;
typedef struct _MetaKmsFeedback MetaKmsFeedback; typedef struct _MetaKmsFeedback MetaKmsFeedback;
typedef struct _MetaKmsPageFlipListenerVtable MetaKmsPageFlipListenerVtable; typedef struct _MetaKmsPageFlipListenerVtable MetaKmsPageFlipListenerVtable;
typedef enum _MetaKmsPageFlipListenerFlag MetaKmsPageFlipListenerFlag;
typedef struct _MetaKmsImpl MetaKmsImpl; typedef struct _MetaKmsImpl MetaKmsImpl;
typedef struct _MetaKmsImplDevice MetaKmsImplDevice; typedef struct _MetaKmsImplDevice MetaKmsImplDevice;

View File

@ -117,7 +117,6 @@ typedef struct _MetaKmsPageFlipListener
MetaKmsCrtc *crtc; MetaKmsCrtc *crtc;
const MetaKmsPageFlipListenerVtable *vtable; const MetaKmsPageFlipListenerVtable *vtable;
MetaKmsPageFlipListenerFlag flags;
GMainContext *main_context; GMainContext *main_context;
gpointer user_data; gpointer user_data;
GDestroyNotify destroy_notify; GDestroyNotify destroy_notify;

View File

@ -525,7 +525,6 @@ void
meta_kms_update_add_page_flip_listener (MetaKmsUpdate *update, meta_kms_update_add_page_flip_listener (MetaKmsUpdate *update,
MetaKmsCrtc *crtc, MetaKmsCrtc *crtc,
const MetaKmsPageFlipListenerVtable *vtable, const MetaKmsPageFlipListenerVtable *vtable,
MetaKmsPageFlipListenerFlag flags,
GMainContext *main_context, GMainContext *main_context,
gpointer user_data, gpointer user_data,
GDestroyNotify destroy_notify) GDestroyNotify destroy_notify)
@ -541,7 +540,6 @@ meta_kms_update_add_page_flip_listener (MetaKmsUpdate *upd
*listener = (MetaKmsPageFlipListener) { *listener = (MetaKmsPageFlipListener) {
.crtc = crtc, .crtc = crtc,
.vtable = vtable, .vtable = vtable,
.flags = flags,
.main_context = main_context, .main_context = main_context,
.user_data = user_data, .user_data = user_data,
.destroy_notify = destroy_notify, .destroy_notify = destroy_notify,

View File

@ -42,11 +42,6 @@ typedef enum _MetaKmsAssignPlaneFlag
META_KMS_ASSIGN_PLANE_FLAG_DIRECT_SCANOUT = 1 << 2, META_KMS_ASSIGN_PLANE_FLAG_DIRECT_SCANOUT = 1 << 2,
} MetaKmsAssignPlaneFlag; } MetaKmsAssignPlaneFlag;
enum _MetaKmsPageFlipListenerFlag
{
META_KMS_PAGE_FLIP_LISTENER_FLAG_NONE = 0,
};
struct _MetaKmsPageFlipListenerVtable struct _MetaKmsPageFlipListenerVtable
{ {
void (* flipped) (MetaKmsCrtc *crtc, void (* flipped) (MetaKmsCrtc *crtc,
@ -174,7 +169,6 @@ META_EXPORT_TEST
void meta_kms_update_add_page_flip_listener (MetaKmsUpdate *update, void meta_kms_update_add_page_flip_listener (MetaKmsUpdate *update,
MetaKmsCrtc *crtc, MetaKmsCrtc *crtc,
const MetaKmsPageFlipListenerVtable *vtable, const MetaKmsPageFlipListenerVtable *vtable,
MetaKmsPageFlipListenerFlag flags,
GMainContext *main_context, GMainContext *main_context,
gpointer user_data, gpointer user_data,
GDestroyNotify destroy_notify); GDestroyNotify destroy_notify);

View File

@ -469,7 +469,6 @@ meta_onscreen_native_flip_crtc (CoglOnscreen *onscreen,
meta_kms_update_add_page_flip_listener (kms_update, meta_kms_update_add_page_flip_listener (kms_update,
kms_crtc, kms_crtc,
&page_flip_listener_vtable, &page_flip_listener_vtable,
META_KMS_PAGE_FLIP_LISTENER_FLAG_NONE,
NULL, NULL,
g_object_ref (view), g_object_ref (view),
g_object_unref); g_object_unref);
@ -1584,7 +1583,6 @@ meta_onscreen_native_finish_frame (CoglOnscreen *onscreen,
meta_kms_update_add_page_flip_listener (kms_update, meta_kms_update_add_page_flip_listener (kms_update,
kms_crtc, kms_crtc,
&page_flip_listener_vtable, &page_flip_listener_vtable,
META_KMS_PAGE_FLIP_LISTENER_FLAG_NONE,
NULL, NULL,
g_object_ref (onscreen_native->view), g_object_ref (onscreen_native->view),
g_object_unref); g_object_unref);

View File

@ -393,7 +393,6 @@ meta_test_kms_update_page_flip (void)
data.thread = g_thread_self (); data.thread = g_thread_self ();
meta_kms_update_add_page_flip_listener (update, crtc, meta_kms_update_add_page_flip_listener (update, crtc,
&page_flip_listener_vtable, &page_flip_listener_vtable,
META_KMS_PAGE_FLIP_LISTENER_FLAG_NONE,
NULL, NULL,
&data, &data,
page_flip_data_destroy); page_flip_data_destroy);
@ -416,7 +415,6 @@ meta_test_kms_update_page_flip (void)
META_KMS_ASSIGN_PLANE_FLAG_NONE); META_KMS_ASSIGN_PLANE_FLAG_NONE);
meta_kms_update_add_page_flip_listener (update, crtc, meta_kms_update_add_page_flip_listener (update, crtc,
&page_flip_listener_vtable, &page_flip_listener_vtable,
META_KMS_PAGE_FLIP_LISTENER_FLAG_NONE,
NULL, NULL,
&data, &data,
page_flip_data_destroy); page_flip_data_destroy);
@ -672,7 +670,6 @@ off_thread_page_flip_thread_func (gpointer user_data)
page_flip_data.thread = g_thread_self (); page_flip_data.thread = g_thread_self ();
meta_kms_update_add_page_flip_listener (update, crtc, meta_kms_update_add_page_flip_listener (update, crtc,
&page_flip_listener_vtable, &page_flip_listener_vtable,
META_KMS_PAGE_FLIP_LISTENER_FLAG_NONE,
data->main_context, data->main_context,
&page_flip_data, &page_flip_data,
page_flip_data_destroy); page_flip_data_destroy);
@ -690,7 +687,6 @@ off_thread_page_flip_thread_func (gpointer user_data)
meta_kms_update_add_page_flip_listener (update, crtc, meta_kms_update_add_page_flip_listener (update, crtc,
&page_flip_listener_vtable, &page_flip_listener_vtable,
META_KMS_PAGE_FLIP_LISTENER_FLAG_NONE,
data->main_context, data->main_context,
&page_flip_data, &page_flip_data,
page_flip_data_destroy); page_flip_data_destroy);