mirror of
https://github.com/brl/mutter.git
synced 2024-11-27 18:40:40 -05:00
39763d4add
If GL advertises this extension we'll use it to synchronize X with GL rendering instead of relying on the XSync() behavior with open source drivers. Some driver bugs were uncovered while working on this so if we have had to reboot the ring a few times, something is probably wrong and we're likely to just make things worse by continuing to try. Let's err on the side of caution, disable ourselves and fallback to the XSync() path in the compositor. https://bugzilla.gnome.org/show_bug.cgi?id=728464
15 lines
350 B
C
15 lines
350 B
C
#ifndef _META_SYNC_RING_H_
|
|
#define _META_SYNC_RING_H_
|
|
|
|
#include <glib.h>
|
|
|
|
#include <X11/Xlib.h>
|
|
|
|
gboolean meta_sync_ring_init (Display *dpy);
|
|
void meta_sync_ring_destroy (void);
|
|
gboolean meta_sync_ring_after_frame (void);
|
|
gboolean meta_sync_ring_insert_wait (void);
|
|
void meta_sync_ring_handle_event (XEvent *event);
|
|
|
|
#endif /* _META_SYNC_RING_H_ */
|