clutter/stage-view: Change set_dirty..() API to invalidate..()

The manual "cleaning" of the viewport and projection state is removed,
and we only ever try to invalidate the state so that it'll be updated
next time. Change the API used to reflect this.

https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1237
This commit is contained in:
Jonas Ådahl 2020-04-30 21:59:49 +02:00 committed by Georges Basile Stavracas Neto
parent c4949b553d
commit 19550c28f9
3 changed files with 8 additions and 12 deletions

View File

@ -24,8 +24,7 @@ void clutter_stage_view_after_paint (ClutterStageView *view);
gboolean clutter_stage_view_is_dirty_viewport (ClutterStageView *view);
void clutter_stage_view_set_dirty_viewport (ClutterStageView *view,
gboolean dirty);
void clutter_stage_view_invalidate_viewport (ClutterStageView *view);
void clutter_stage_view_set_viewport (ClutterStageView *view,
float x,
@ -35,8 +34,7 @@ void clutter_stage_view_set_viewport (ClutterStageView *view,
gboolean clutter_stage_view_is_dirty_projection (ClutterStageView *view);
void clutter_stage_view_set_dirty_projection (ClutterStageView *view,
gboolean dirty);
void clutter_stage_view_invalidate_projection (ClutterStageView *view);
void clutter_stage_view_set_projection (ClutterStageView *view,
const CoglMatrix *matrix);

View File

@ -354,13 +354,12 @@ clutter_stage_view_is_dirty_viewport (ClutterStageView *view)
}
void
clutter_stage_view_set_dirty_viewport (ClutterStageView *view,
gboolean dirty)
clutter_stage_view_invalidate_viewport (ClutterStageView *view)
{
ClutterStageViewPrivate *priv =
clutter_stage_view_get_instance_private (view);
priv->dirty_viewport = dirty;
priv->dirty_viewport = TRUE;
}
void
@ -389,13 +388,12 @@ clutter_stage_view_is_dirty_projection (ClutterStageView *view)
}
void
clutter_stage_view_set_dirty_projection (ClutterStageView *view,
gboolean dirty)
clutter_stage_view_invalidate_projection (ClutterStageView *view)
{
ClutterStageViewPrivate *priv =
clutter_stage_view_get_instance_private (view);
priv->dirty_projection = dirty;
priv->dirty_projection = TRUE;
}
void

View File

@ -2434,7 +2434,7 @@ _clutter_stage_dirty_projection (ClutterStage *stage)
{
ClutterStageView *view = l->data;
clutter_stage_view_set_dirty_projection (view, TRUE);
clutter_stage_view_invalidate_projection (view);
}
}
@ -2524,7 +2524,7 @@ _clutter_stage_dirty_viewport (ClutterStage *stage)
{
ClutterStageView *view = l->data;
clutter_stage_view_set_dirty_viewport (view, TRUE);
clutter_stage_view_invalidate_viewport (view);
}
}