mirror of
https://github.com/brl/mutter.git
synced 2024-11-21 23:50:41 -05:00
Remove unused flag COGL_WINSYS_FEATURE_SWAP_THROTTLE
This also removes an old comment about `wait_for_pending_flips` which no longer exists. https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1390
This commit is contained in:
parent
593e610415
commit
f3ad63e206
@ -428,10 +428,6 @@ typedef enum _CoglWinsysFeature
|
||||
* framebuffers at the same time. */
|
||||
COGL_WINSYS_FEATURE_MULTIPLE_ONSCREEN,
|
||||
|
||||
/* Available if onscreen framebuffer swaps can be automatically
|
||||
* throttled to the vblank frequency. */
|
||||
COGL_WINSYS_FEATURE_SWAP_THROTTLE,
|
||||
|
||||
/* Available if its possible to query a counter that
|
||||
* increments at each vblank. */
|
||||
COGL_WINSYS_FEATURE_VBLANK_COUNTER,
|
||||
|
@ -130,7 +130,7 @@ COGL_WINSYS_FEATURE_BEGIN (255, 255,
|
||||
"SGI\0",
|
||||
"swap_control\0",
|
||||
0,
|
||||
COGL_WINSYS_FEATURE_SWAP_THROTTLE)
|
||||
0)
|
||||
COGL_WINSYS_FEATURE_FUNCTION (int, glXSwapInterval,
|
||||
(int interval))
|
||||
COGL_WINSYS_FEATURE_END ()
|
||||
|
@ -2200,13 +2200,6 @@ meta_renderer_native_init_egl_context (CoglContext *cogl_context,
|
||||
COGL_WINSYS_FEATURE_MULTIPLE_ONSCREEN,
|
||||
TRUE);
|
||||
|
||||
/* COGL_WINSYS_FEATURE_SWAP_THROTTLE is always true for this renderer
|
||||
* because we have the call to wait_for_pending_flips on every frame.
|
||||
*/
|
||||
COGL_FLAGS_SET (cogl_context->winsys_features,
|
||||
COGL_WINSYS_FEATURE_SWAP_THROTTLE,
|
||||
TRUE);
|
||||
|
||||
#ifdef HAVE_EGL_DEVICE
|
||||
if (renderer_gpu_data->mode == META_RENDERER_NATIVE_MODE_EGL_DEVICE)
|
||||
COGL_FLAGS_SET (cogl_context->features,
|
||||
|
Loading…
Reference in New Issue
Block a user