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
@ -3386,7 +3386,7 @@ clutter_actor_paint_node (ClutterActor *actor,
|
|||||||
_clutter_content_paint_content (priv->content, actor, root, paint_context);
|
_clutter_content_paint_content (priv->content, actor, root, paint_context);
|
||||||
|
|
||||||
if (CLUTTER_ACTOR_GET_CLASS (actor)->paint_node != NULL)
|
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)
|
if (clutter_paint_node_get_n_children (root) == 0)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
@ -222,7 +222,8 @@ struct _ClutterActorClass
|
|||||||
gboolean (* has_overlaps) (ClutterActor *self);
|
gboolean (* has_overlaps) (ClutterActor *self);
|
||||||
|
|
||||||
void (* paint_node) (ClutterActor *self,
|
void (* paint_node) (ClutterActor *self,
|
||||||
ClutterPaintNode *root);
|
ClutterPaintNode *root,
|
||||||
|
ClutterPaintContext *paint_context);
|
||||||
|
|
||||||
gboolean (* touch_event) (ClutterActor *self,
|
gboolean (* touch_event) (ClutterActor *self,
|
||||||
ClutterEvent *event);
|
ClutterEvent *event);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user