[mutter/gbsneto/graphene-ray: 2/3] clutter/actor: Remove cached inverse transform




commit 6ce070f846e35408aff354c5ae8d1290e4fecab8
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Sat Oct 17 12:43:00 2020 -0300

    clutter/actor: Remove cached inverse transform
    
    It is not used anymore.
    
    https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1509

 clutter/clutter/clutter-actor.c | 4 ----
 1 file changed, 4 deletions(-)
---
diff --git a/clutter/clutter/clutter-actor.c b/clutter/clutter/clutter-actor.c
index ad94659b8b..73527e9abe 100644
--- a/clutter/clutter/clutter-actor.c
+++ b/clutter/clutter/clutter-actor.c
@@ -704,7 +704,6 @@ struct _ClutterActorPrivate
 
   /* the cached transformation matrix; see apply_transform() */
   graphene_matrix_t transform;
-  graphene_matrix_t inverse_transform;
 
   float resource_scale;
 
@@ -858,7 +857,6 @@ struct _ClutterActorPrivate
   guint had_effects_on_last_paint_volume_update : 1;
   guint absolute_origin_changed     : 1;
   guint needs_update_stage_views    : 1;
-  guint has_inverse_transform       : 1;
 };
 
 enum
@@ -3078,8 +3076,6 @@ ensure_valid_actor_transform (ClutterActor *actor)
   graphene_matrix_init_identity (&priv->transform);
 
   CLUTTER_ACTOR_GET_CLASS (actor)->apply_transform (actor, &priv->transform);
-  priv->has_inverse_transform = graphene_matrix_inverse (&priv->transform,
-                                                         &priv->inverse_transform);
 
   priv->transform_valid = TRUE;
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]