cogl/onscreen: Add function cogl_onscreen_get_pending_frame_count
(cherry picked from commit bc2d423e50ba193ab402904e9e0a75cf7c32ccb7) Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1441> Signed-off-by: Mingi Sung <sungmg@saltyming.net>
This commit is contained in:
parent
e2600117ba
commit
e0d5a91286
2 changed files with 11 additions and 0 deletions
|
@ -80,3 +80,6 @@ cogl_onscreen_peek_tail_frame_info (CoglOnscreen *onscreen);
|
|||
|
||||
COGL_EXPORT CoglFrameInfo *
|
||||
cogl_onscreen_pop_head_frame_info (CoglOnscreen *onscreen);
|
||||
|
||||
COGL_EXPORT unsigned int
|
||||
cogl_onscreen_get_pending_frame_count (CoglOnscreen *onscreen);
|
||||
|
|
|
@ -470,6 +470,14 @@ cogl_onscreen_pop_head_frame_info (CoglOnscreen *onscreen)
|
|||
return g_queue_pop_head (&priv->pending_frame_infos);
|
||||
}
|
||||
|
||||
unsigned int
|
||||
cogl_onscreen_get_pending_frame_count (CoglOnscreen *onscreen)
|
||||
{
|
||||
CoglOnscreenPrivate *priv = cogl_onscreen_get_instance_private (onscreen);
|
||||
|
||||
return g_queue_get_length (&priv->pending_frame_infos);
|
||||
}
|
||||
|
||||
CoglFrameClosure *
|
||||
cogl_onscreen_add_frame_callback (CoglOnscreen *onscreen,
|
||||
CoglFrameCallback callback,
|
||||
|
|
Loading…
Reference in a new issue