clutter: Make clutter_actor_create_texture_paint_node public

Since StDrawingArea in gnome-shell is the only user of ClutterCanvas,
it is possible to move ClutterCanvas completely out of Mutter to
gnome-shell. This allows to remove another Cairo dependency from
Mutter.

This patch makes clutter_actor_create_texture_paint_node() function
public to be used by StDrawingArea in gnome-shell that replaces
ClutterCanvas.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3507>
This commit is contained in:
Shmuel Melamud 2024-01-10 00:32:03 +02:00 committed by Bilal Elmoussaoui
parent 37c0b27895
commit f4c6fa949d
3 changed files with 4 additions and 4 deletions

View File

@ -249,9 +249,6 @@ void clutter_actor_clear_stage_views_recursive
float clutter_actor_get_real_resource_scale (ClutterActor *actor); float clutter_actor_get_real_resource_scale (ClutterActor *actor);
ClutterPaintNode * clutter_actor_create_texture_paint_node (ClutterActor *self,
CoglTexture *texture);
void clutter_actor_finish_layout (ClutterActor *self, void clutter_actor_finish_layout (ClutterActor *self,
int phase); int phase);

View File

@ -18385,7 +18385,7 @@ clutter_actor_bind_model_with_properties (ClutterActor *self,
clutter_actor_bind_model (self, model, bind_child_with_properties, clos, bind_closure_free); clutter_actor_bind_model (self, model, bind_child_with_properties, clos, bind_closure_free);
} }
/*< private > /*
* clutter_actor_create_texture_paint_node: * clutter_actor_create_texture_paint_node:
* @self: a #ClutterActor * @self: a #ClutterActor
* @texture: a #CoglTexture * @texture: a #CoglTexture

View File

@ -308,6 +308,9 @@ CLUTTER_EXPORT
void clutter_actor_continue_paint (ClutterActor *self, void clutter_actor_continue_paint (ClutterActor *self,
ClutterPaintContext *paint_context); ClutterPaintContext *paint_context);
CLUTTER_EXPORT CLUTTER_EXPORT
ClutterPaintNode * clutter_actor_create_texture_paint_node (ClutterActor *self,
CoglTexture *texture);
CLUTTER_EXPORT
void clutter_actor_pick (ClutterActor *actor, void clutter_actor_pick (ClutterActor *actor,
ClutterPickContext *pick_context); ClutterPickContext *pick_context);
CLUTTER_EXPORT CLUTTER_EXPORT