backends/native: Avoid generic closure marshaler for page flip handling

This turns out more expensive than necessary.

https://bugzilla.gnome.org/show_bug.cgi?id=782344
This commit is contained in:
Carlos Garnacho 2017-04-30 18:26:36 +02:00
parent 2b1537cdf5
commit d0bfb94ff0

View File

@ -703,7 +703,7 @@ meta_onscreen_native_flip_crtcs (CoglOnscreen *onscreen)
flip_closure = g_cclosure_new (G_CALLBACK (on_crtc_flipped),
g_object_ref (view),
(GClosureNotify) flip_closure_destroyed);
g_closure_set_marshal (flip_closure, g_cclosure_marshal_generic);
g_closure_set_marshal (flip_closure, g_cclosure_marshal_VOID__VOID);
/* Either flip the CRTC's of the monitor info, if we are drawing just part
* of the stage, or all of the CRTC's if we are drawing the whole stage.