clutter/actor: Pass paint context in paint_node()
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3433>
This commit is contained in:
parent
15df584b7e
commit
0c653b4cf2
2 changed files with 3 additions and 2 deletions
|
@ -3386,7 +3386,7 @@ clutter_actor_paint_node (ClutterActor *actor,
|
|||
_clutter_content_paint_content (priv->content, actor, root, paint_context);
|
||||
|
||||
if (CLUTTER_ACTOR_GET_CLASS (actor)->paint_node != NULL)
|
||||
CLUTTER_ACTOR_GET_CLASS (actor)->paint_node (actor, root);
|
||||
CLUTTER_ACTOR_GET_CLASS (actor)->paint_node (actor, root, paint_context);
|
||||
|
||||
if (clutter_paint_node_get_n_children (root) == 0)
|
||||
return FALSE;
|
||||
|
|
|
@ -222,7 +222,8 @@ struct _ClutterActorClass
|
|||
gboolean (* has_overlaps) (ClutterActor *self);
|
||||
|
||||
void (* paint_node) (ClutterActor *self,
|
||||
ClutterPaintNode *root);
|
||||
ClutterPaintNode *root,
|
||||
ClutterPaintContext *paint_context);
|
||||
|
||||
gboolean (* touch_event) (ClutterActor *self,
|
||||
ClutterEvent *event);
|
||||
|
|
Loading…
Reference in a new issue