mirror of
https://github.com/brl/mutter.git
synced 2024-11-24 09:00:42 -05:00
clutter/stage: Add clutter_stage_is_redraw_queued() API
This will be used by the screen casting code to check whether it should wait for a frame before reading cursor state, or send only the cursor update, if no redraw is queued. https://gitlab.gnome.org/GNOME/mutter/merge_requests/357
This commit is contained in:
parent
63cee05c65
commit
c74dc7ce45
@ -3722,6 +3722,17 @@ clutter_stage_ensure_redraw (ClutterStage *stage)
|
|||||||
_clutter_master_clock_start_running (master_clock);
|
_clutter_master_clock_start_running (master_clock);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* clutter_stage_is_redraw_queued: (skip)
|
||||||
|
*/
|
||||||
|
gboolean
|
||||||
|
clutter_stage_is_redraw_queued (ClutterStage *stage)
|
||||||
|
{
|
||||||
|
ClutterStagePrivate *priv = stage->priv;
|
||||||
|
|
||||||
|
return priv->redraw_pending;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* clutter_stage_queue_redraw:
|
* clutter_stage_queue_redraw:
|
||||||
* @stage: the #ClutterStage
|
* @stage: the #ClutterStage
|
||||||
|
@ -250,6 +250,9 @@ void clutter_stage_ensure_viewport (ClutterStage
|
|||||||
CLUTTER_AVAILABLE_IN_ALL
|
CLUTTER_AVAILABLE_IN_ALL
|
||||||
void clutter_stage_ensure_redraw (ClutterStage *stage);
|
void clutter_stage_ensure_redraw (ClutterStage *stage);
|
||||||
|
|
||||||
|
CLUTTER_AVAILABLE_IN_ALL
|
||||||
|
gboolean clutter_stage_is_redraw_queued (ClutterStage *stage);
|
||||||
|
|
||||||
#ifdef CLUTTER_ENABLE_EXPERIMENTAL_API
|
#ifdef CLUTTER_ENABLE_EXPERIMENTAL_API
|
||||||
CLUTTER_AVAILABLE_IN_1_14
|
CLUTTER_AVAILABLE_IN_1_14
|
||||||
void clutter_stage_set_sync_delay (ClutterStage *stage,
|
void clutter_stage_set_sync_delay (ClutterStage *stage,
|
||||||
|
Loading…
Reference in New Issue
Block a user