clutter: Remove ability to externally set sync-to-vblank

Externally setting the sync-to-vblank setting was a feature
added as a workaround to old Intel and ATI graphic cards, and
is not needed anymore. Furthermore, it doesn't make sense to
change it on a compositor whatsoever.

This commit removes all the ways to externally change this
setting, as well as the now unused API.

https://gitlab.gnome.org/GNOME/mutter/merge_requests/191
This commit is contained in:
Georges Basile Stavracas Neto
2018-08-08 14:05:31 -03:00
parent fe0a394e69
commit ae4d3bc27d
4 changed files with 1 additions and 28 deletions

View File

@ -2729,9 +2729,6 @@ meta_renderer_native_create_onscreen (MetaRendererNative *renderer_native,
/* We have wait_for_pending_flips hardcoded, so throttling always. */
cogl_onscreen_set_swap_throttled (onscreen, TRUE);
if (!_clutter_get_sync_to_vblank ())
g_warning ("Request to disable sync-to-vblank is being ignored. "
"MetaRendererNative does not support disabling it.");
if (!cogl_framebuffer_allocate (COGL_FRAMEBUFFER (onscreen), error))
{