[mutter/gbsneto/pick-culling: 63/63] clutter/actor: Invalidate last paint volume on absolute geometry changes
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/gbsneto/pick-culling: 63/63] clutter/actor: Invalidate last paint volume on absolute geometry changes
- Date: Mon, 26 Oct 2020 15:15:06 +0000 (UTC)
commit c3e61e5be038b69b586c854d8cb5b6e5fb063583
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Thu Oct 22 21:36:53 2020 -0300
clutter/actor: Invalidate last paint volume on absolute geometry changes
The last paint volume is in eye coordinates. When an actor changes
any transform, all children potentially change their position in
eye coordinates, and consequently, the last paint volume becomes
invalid.
Mark the last paint volume as invalid when the absolute geometry
of an actor changes.
https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1520
clutter/clutter/clutter-actor.c | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/clutter/clutter/clutter-actor.c b/clutter/clutter/clutter-actor.c
index 9f2423be33..4e2aab28e3 100644
--- a/clutter/clutter/clutter-actor.c
+++ b/clutter/clutter/clutter-actor.c
@@ -2441,6 +2441,7 @@ clutter_actor_notify_if_geometry_changed (ClutterActor *self,
static void
absolute_geometry_changed (ClutterActor *actor)
{
+ actor->priv->last_paint_volume_valid = FALSE;
queue_update_stage_views (actor);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]