diff --git a/src/compositor/meta-surface-actor.c b/src/compositor/meta-surface-actor.c index 6d2f4cbd9..31442b404 100644 --- a/src/compositor/meta-surface-actor.c +++ b/src/compositor/meta-surface-actor.c @@ -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) { diff --git a/src/compositor/meta-surface-actor.h b/src/compositor/meta-surface-actor.h index d3f9d7bb4..f69cb1527 100644 --- a/src/compositor/meta-surface-actor.h +++ b/src/compositor/meta-surface-actor.h @@ -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,