mirror of
https://github.com/brl/mutter.git
synced 2024-11-21 07:30:42 -05:00
surface-actor: Remove get_image() function
It is unused and removing it allows us some further cleanups. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1978>
This commit is contained in:
parent
9f8242658e
commit
021c1dd7fa
@ -373,31 +373,6 @@ meta_surface_actor_init (MetaSurfaceActor *self)
|
||||
CLUTTER_REQUEST_CONTENT_SIZE);
|
||||
}
|
||||
|
||||
/**
|
||||
* meta_surface_actor_get_image:
|
||||
* @self: A #MetaSurfaceActor
|
||||
* @clip: (nullable): A clipping rectangle. The clip region is in
|
||||
* the same coordinate space as the contents preferred size.
|
||||
* For a shaped texture of a wl_surface, this means surface
|
||||
* coordinate space. If NULL, the whole content will be used.
|
||||
*
|
||||
* Get the image from the texture content. The resulting size of
|
||||
* the returned image may be different from the preferred size of
|
||||
* the shaped texture content.
|
||||
*
|
||||
* Returns: (nullable) (transfer full): a new cairo surface to be freed
|
||||
* with cairo_surface_destroy().
|
||||
*/
|
||||
cairo_surface_t *
|
||||
meta_surface_actor_get_image (MetaSurfaceActor *self,
|
||||
cairo_rectangle_int_t *clip)
|
||||
{
|
||||
MetaSurfaceActorPrivate *priv =
|
||||
meta_surface_actor_get_instance_private (self);
|
||||
|
||||
return meta_shaped_texture_get_image (priv->texture, clip);
|
||||
}
|
||||
|
||||
MetaShapedTexture *
|
||||
meta_surface_actor_get_texture (MetaSurfaceActor *self)
|
||||
{
|
||||
|
@ -27,9 +27,6 @@ struct _MetaSurfaceActorClass
|
||||
gboolean (* is_opaque) (MetaSurfaceActor *actor);
|
||||
};
|
||||
|
||||
cairo_surface_t *meta_surface_actor_get_image (MetaSurfaceActor *self,
|
||||
cairo_rectangle_int_t *clip);
|
||||
|
||||
MetaShapedTexture *meta_surface_actor_get_texture (MetaSurfaceActor *self);
|
||||
|
||||
void meta_surface_actor_update_area (MetaSurfaceActor *self,
|
||||
|
Loading…
Reference in New Issue
Block a user