diff --git a/clutter/clutter/clutter-actor.c b/clutter/clutter/clutter-actor.c index e70892308..a6ebc8f33 100644 --- a/clutter/clutter/clutter-actor.c +++ b/clutter/clutter/clutter-actor.c @@ -840,7 +840,6 @@ struct _ClutterActorPrivate guint needs_compute_expand : 1; guint needs_x_expand : 1; guint needs_y_expand : 1; - guint needs_paint_volume_update : 1; guint had_effects_on_last_paint_volume_update : 1; }; @@ -1511,8 +1510,6 @@ clutter_actor_real_map (ClutterActor *self) CLUTTER_ACTOR_SET_FLAGS (self, CLUTTER_ACTOR_MAPPED); - self->priv->needs_paint_volume_update = TRUE; - stage = _clutter_actor_get_stage_internal (self); priv->pick_id = _clutter_stage_acquire_pick_id (CLUTTER_STAGE (stage), self); @@ -2746,8 +2743,7 @@ clutter_actor_real_queue_relayout (ClutterActor *self) priv->needs_width_request = TRUE; priv->needs_height_request = TRUE; priv->needs_allocation = TRUE; - priv->needs_paint_volume_update = TRUE; - + /* reset the cached size requests */ memset (priv->width_requests, 0, N_CACHED_SIZE_REQUESTS * sizeof (SizeRequest)); @@ -8531,8 +8527,7 @@ clutter_actor_init (ClutterActor *self) priv->needs_width_request = TRUE; priv->needs_height_request = TRUE; priv->needs_allocation = TRUE; - priv->needs_paint_volume_update = TRUE; - + priv->cached_width_age = 1; priv->cached_height_age = 1; @@ -10098,9 +10093,6 @@ clutter_actor_allocate (ClutterActor *self, return; } - if (CLUTTER_ACTOR_IS_MAPPED (self)) - self->priv->needs_paint_volume_update = TRUE; - if (!stage_allocation_changed) { /* If the actor didn't move but needs_allocation is set, we just @@ -12992,9 +12984,6 @@ clutter_actor_add_child_internal (ClutterActor *self, child->priv->needs_height_request = TRUE; child->priv->needs_allocation = TRUE; - if (CLUTTER_ACTOR_IS_MAPPED (child)) - child->priv->needs_paint_volume_update = TRUE; - /* we only queue a relayout here, because any possible * redraw has already been queued either by show() or * by our call to queue_redraw() above @@ -17567,19 +17556,6 @@ _clutter_actor_get_paint_volume_mutable (ClutterActor *self) if (priv->paint_volume_valid) { - /* If effects are applied, the actor paint volume - * needs to be recomputed on each paint, since those - * paint volumes could change over the duration of the - * effect. - * - * We also need to update the paint volume if we went - * from having effects to not having effects on the last - * paint volume update. */ - if (!priv->needs_paint_volume_update && - priv->current_effect == NULL && - !has_paint_volume_override_effects && - !priv->had_effects_on_last_paint_volume_update) - return &priv->paint_volume; clutter_paint_volume_free (&priv->paint_volume); } @@ -17588,7 +17564,6 @@ _clutter_actor_get_paint_volume_mutable (ClutterActor *self) if (_clutter_actor_get_paint_volume_real (self, &priv->paint_volume)) { priv->paint_volume_valid = TRUE; - priv->needs_paint_volume_update = FALSE; return &priv->paint_volume; } else