[mutter/gbsneto/pick-culling: 15/16] 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: 15/16] clutter/actor: Invalidate last paint volume on absolute geometry changes
- Date: Wed, 28 Oct 2020 18:09:43 +0000 (UTC)
commit b16d7961f61a529280ba0398b4de5a03a0f6df37
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 e1ff406b0a..bc048cbb38 100644
--- a/clutter/clutter/clutter-actor.c
+++ b/clutter/clutter/clutter-actor.c
@@ -2440,6 +2440,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]