[mutter] surface-actor: Remove get_image() function
- From: Marge Bot <marge-bot src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] surface-actor: Remove get_image() function
- Date: Sat, 28 Aug 2021 12:32:01 +0000 (UTC)
commit 021c1dd7fa24dda2e2abf2818c98620606a7f97c
Author: Robert Mader <robert mader posteo de>
Date: Sun Aug 22 13:35:19 2021 +0200
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>
src/compositor/meta-surface-actor.c | 25 -------------------------
src/compositor/meta-surface-actor.h | 3 ---
2 files changed, 28 deletions(-)
---
diff --git a/src/compositor/meta-surface-actor.c b/src/compositor/meta-surface-actor.c
index 6d2f4cbd9a..31442b4042 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 d3f9d7bb48..f69cb15275 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,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]