1
0
Fork 0

clutter/actor: Pass paint context in paint_node()

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3433>
This commit is contained in:
Jonas Ådahl 2024-05-30 22:40:06 +02:00 committed by Sebastian Wick
parent 15df584b7e
commit 0c653b4cf2
2 changed files with 3 additions and 2 deletions

View file

@ -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;

View file

@ -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);