mirror of
https://github.com/brl/mutter.git
synced 2024-11-25 09:30:45 -05:00
cogl: Remove unused swap-related COGL_FEATURE_ID_ flags
What we actually use is `COGL_WINSYS_FEATURE_SWAP_BUFFERS_EVENT`, which is also set in the same locations. https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1297
This commit is contained in:
parent
e078a007d6
commit
df65f05e27
@ -186,14 +186,9 @@ cogl_is_context (void *object);
|
|||||||
* supported with CoglBufferAccess including read support.
|
* supported with CoglBufferAccess including read support.
|
||||||
* @COGL_FEATURE_ID_MAP_BUFFER_FOR_WRITE: Whether cogl_buffer_map() is
|
* @COGL_FEATURE_ID_MAP_BUFFER_FOR_WRITE: Whether cogl_buffer_map() is
|
||||||
* supported with CoglBufferAccess including write support.
|
* supported with CoglBufferAccess including write support.
|
||||||
* @COGL_FEATURE_ID_SWAP_BUFFERS_EVENT:
|
|
||||||
* Available if the window system supports reporting an event
|
|
||||||
* for swap buffer completions.
|
|
||||||
* @COGL_FEATURE_ID_BUFFER_AGE: Available if the age of #CoglOnscreen back
|
* @COGL_FEATURE_ID_BUFFER_AGE: Available if the age of #CoglOnscreen back
|
||||||
* buffers are tracked and so cogl_onscreen_get_buffer_age() can be
|
* buffers are tracked and so cogl_onscreen_get_buffer_age() can be
|
||||||
* expected to return age values other than 0.
|
* expected to return age values other than 0.
|
||||||
* @COGL_FEATURE_ID_PRESENTATION_TIME: Whether frame presentation
|
|
||||||
* time stamps will be recorded in #CoglFrameInfo objects.
|
|
||||||
* @COGL_FEATURE_ID_BLIT_FRAMEBUFFER: Whether blitting using
|
* @COGL_FEATURE_ID_BLIT_FRAMEBUFFER: Whether blitting using
|
||||||
* cogl_blit_framebuffer() is supported.
|
* cogl_blit_framebuffer() is supported.
|
||||||
*
|
*
|
||||||
@ -208,8 +203,6 @@ typedef enum _CoglFeatureID
|
|||||||
COGL_FEATURE_ID_UNSIGNED_INT_INDICES,
|
COGL_FEATURE_ID_UNSIGNED_INT_INDICES,
|
||||||
COGL_FEATURE_ID_MAP_BUFFER_FOR_READ,
|
COGL_FEATURE_ID_MAP_BUFFER_FOR_READ,
|
||||||
COGL_FEATURE_ID_MAP_BUFFER_FOR_WRITE,
|
COGL_FEATURE_ID_MAP_BUFFER_FOR_WRITE,
|
||||||
COGL_FEATURE_ID_SWAP_BUFFERS_EVENT,
|
|
||||||
COGL_FEATURE_ID_PRESENTATION_TIME,
|
|
||||||
COGL_FEATURE_ID_FENCE,
|
COGL_FEATURE_ID_FENCE,
|
||||||
COGL_FEATURE_ID_TEXTURE_RG,
|
COGL_FEATURE_ID_TEXTURE_RG,
|
||||||
COGL_FEATURE_ID_BUFFER_AGE,
|
COGL_FEATURE_ID_BUFFER_AGE,
|
||||||
|
@ -840,13 +840,6 @@ update_winsys_features (CoglContext *context, GError **error)
|
|||||||
{
|
{
|
||||||
COGL_FLAGS_SET (context->winsys_features,
|
COGL_FLAGS_SET (context->winsys_features,
|
||||||
COGL_WINSYS_FEATURE_SWAP_BUFFERS_EVENT, TRUE);
|
COGL_WINSYS_FEATURE_SWAP_BUFFERS_EVENT, TRUE);
|
||||||
/* TODO: remove this deprecated feature */
|
|
||||||
COGL_FLAGS_SET (context->features,
|
|
||||||
COGL_FEATURE_ID_SWAP_BUFFERS_EVENT,
|
|
||||||
TRUE);
|
|
||||||
COGL_FLAGS_SET (context->features,
|
|
||||||
COGL_FEATURE_ID_PRESENTATION_TIME,
|
|
||||||
TRUE);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* We'll manually handle queueing dirty events in response to
|
/* We'll manually handle queueing dirty events in response to
|
||||||
|
@ -2147,11 +2147,6 @@ meta_renderer_native_init_egl_context (CoglContext *cogl_context,
|
|||||||
MetaRendererNativeGpuData *renderer_gpu_data = cogl_renderer_egl->platform;
|
MetaRendererNativeGpuData *renderer_gpu_data = cogl_renderer_egl->platform;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
COGL_FLAGS_SET (cogl_context->features,
|
|
||||||
COGL_FEATURE_ID_PRESENTATION_TIME, TRUE);
|
|
||||||
COGL_FLAGS_SET (cogl_context->features,
|
|
||||||
COGL_FEATURE_ID_SWAP_BUFFERS_EVENT, TRUE);
|
|
||||||
/* TODO: remove this deprecated feature */
|
|
||||||
COGL_FLAGS_SET (cogl_context->winsys_features,
|
COGL_FLAGS_SET (cogl_context->winsys_features,
|
||||||
COGL_WINSYS_FEATURE_SWAP_BUFFERS_EVENT,
|
COGL_WINSYS_FEATURE_SWAP_BUFFERS_EVENT,
|
||||||
TRUE);
|
TRUE);
|
||||||
|
Loading…
Reference in New Issue
Block a user