cogl/frame-info: Stop passing the CoglOutput

It's unused, and if it would be, it'd be unreliable, as it'd only be
valid on the Xlib and GLX cogl backends.

https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1289
This commit is contained in:
Jonas Ådahl 2020-05-22 21:44:36 +02:00 committed by Georges Basile Stavracas Neto
parent 55302dbb38
commit 83ee122fad
4 changed files with 0 additions and 24 deletions

View File

@ -43,8 +43,6 @@ struct _CoglFrameInfo
float refresh_rate; float refresh_rate;
int64_t global_frame_counter; int64_t global_frame_counter;
CoglOutput *output;
}; };
CoglFrameInfo *_cogl_frame_info_new (void); CoglFrameInfo *_cogl_frame_info_new (void);

View File

@ -72,12 +72,6 @@ cogl_frame_info_get_refresh_rate (CoglFrameInfo *info)
return info->refresh_rate; return info->refresh_rate;
} }
CoglOutput *
cogl_frame_info_get_output (CoglFrameInfo *info)
{
return info->output;
}
int64_t int64_t
cogl_frame_info_get_global_frame_counter (CoglFrameInfo *info) cogl_frame_info_get_global_frame_counter (CoglFrameInfo *info)
{ {

View File

@ -126,20 +126,6 @@ int64_t cogl_frame_info_get_presentation_time (CoglFrameInfo *info);
COGL_EXPORT COGL_EXPORT
float cogl_frame_info_get_refresh_rate (CoglFrameInfo *info); float cogl_frame_info_get_refresh_rate (CoglFrameInfo *info);
/**
* cogl_frame_info_get_output:
* @info: a #CoglFrameInfo object
*
* Gets the #CoglOutput that the swapped frame was presented to.
*
* Return value: (transfer none): The #CoglOutput that the frame was
* presented to, or %NULL if this could not be determined.
* Since: 1.14
* Stability: unstable
*/
COGL_EXPORT CoglOutput *
cogl_frame_info_get_output (CoglFrameInfo *info);
/** /**
* cogl_frame_info_get_global_frame_counter: (skip) * cogl_frame_info_get_global_frame_counter: (skip)
*/ */

View File

@ -1662,8 +1662,6 @@ set_frame_info_output (CoglOnscreen *onscreen,
{ {
CoglFrameInfo *info = g_queue_peek_tail (&onscreen->pending_frame_infos); CoglFrameInfo *info = g_queue_peek_tail (&onscreen->pending_frame_infos);
info->output = output;
if (output) if (output)
{ {
float refresh_rate = cogl_output_get_refresh_rate (output); float refresh_rate = cogl_output_get_refresh_rate (output);