mirror of
https://github.com/brl/mutter.git
synced 2024-11-21 23:50:41 -05:00
clutter: Remove CLUTTER_REPAINT_FLAGS_QUEUE_REDRAW_ON_ADD
It was unused, and will simplify things when we're without a master clock. https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1289
This commit is contained in:
parent
6754195580
commit
1a915f06cf
@ -1317,8 +1317,6 @@ typedef enum
|
|||||||
* painting the stages
|
* painting the stages
|
||||||
* @CLUTTER_REPAINT_FLAGS_POST_PAINT: Run the repaint function after
|
* @CLUTTER_REPAINT_FLAGS_POST_PAINT: Run the repaint function after
|
||||||
* painting the stages
|
* painting the stages
|
||||||
* @CLUTTER_REPAINT_FLAGS_QUEUE_REDRAW_ON_ADD: Ensure that a new frame
|
|
||||||
* is queued after adding the repaint function
|
|
||||||
*
|
*
|
||||||
* Flags to pass to clutter_threads_add_repaint_func_full().
|
* Flags to pass to clutter_threads_add_repaint_func_full().
|
||||||
*
|
*
|
||||||
@ -1328,7 +1326,6 @@ typedef enum
|
|||||||
{
|
{
|
||||||
CLUTTER_REPAINT_FLAGS_PRE_PAINT = 1 << 0,
|
CLUTTER_REPAINT_FLAGS_PRE_PAINT = 1 << 0,
|
||||||
CLUTTER_REPAINT_FLAGS_POST_PAINT = 1 << 1,
|
CLUTTER_REPAINT_FLAGS_POST_PAINT = 1 << 1,
|
||||||
CLUTTER_REPAINT_FLAGS_QUEUE_REDRAW_ON_ADD = 1 << 2
|
|
||||||
} ClutterRepaintFlags;
|
} ClutterRepaintFlags;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -2392,8 +2392,7 @@ clutter_threads_add_repaint_func_full (ClutterRepaintFlags flags,
|
|||||||
|
|
||||||
repaint_func->id = context->last_repaint_id++;
|
repaint_func->id = context->last_repaint_id++;
|
||||||
|
|
||||||
/* mask out QUEUE_REDRAW_ON_ADD, since we're going to consume it */
|
repaint_func->flags = flags;
|
||||||
repaint_func->flags = flags & ~CLUTTER_REPAINT_FLAGS_QUEUE_REDRAW_ON_ADD;
|
|
||||||
repaint_func->func = func;
|
repaint_func->func = func;
|
||||||
repaint_func->data = data;
|
repaint_func->data = data;
|
||||||
repaint_func->notify = notify;
|
repaint_func->notify = notify;
|
||||||
@ -2403,13 +2402,6 @@ clutter_threads_add_repaint_func_full (ClutterRepaintFlags flags,
|
|||||||
|
|
||||||
_clutter_context_unlock ();
|
_clutter_context_unlock ();
|
||||||
|
|
||||||
if ((flags & CLUTTER_REPAINT_FLAGS_QUEUE_REDRAW_ON_ADD) != 0)
|
|
||||||
{
|
|
||||||
ClutterMasterClock *master_clock = _clutter_master_clock_get_default ();
|
|
||||||
|
|
||||||
_clutter_master_clock_ensure_next_iteration (master_clock);
|
|
||||||
}
|
|
||||||
|
|
||||||
return repaint_func->id;
|
return repaint_func->id;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user