mirror of
https://github.com/brl/mutter.git
synced 2024-11-21 23:50:41 -05:00
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:
parent
c4949b553d
commit
19550c28f9
@ -24,8 +24,7 @@ void clutter_stage_view_after_paint (ClutterStageView *view);
|
|||||||
|
|
||||||
gboolean clutter_stage_view_is_dirty_viewport (ClutterStageView *view);
|
gboolean clutter_stage_view_is_dirty_viewport (ClutterStageView *view);
|
||||||
|
|
||||||
void clutter_stage_view_set_dirty_viewport (ClutterStageView *view,
|
void clutter_stage_view_invalidate_viewport (ClutterStageView *view);
|
||||||
gboolean dirty);
|
|
||||||
|
|
||||||
void clutter_stage_view_set_viewport (ClutterStageView *view,
|
void clutter_stage_view_set_viewport (ClutterStageView *view,
|
||||||
float x,
|
float x,
|
||||||
@ -35,8 +34,7 @@ void clutter_stage_view_set_viewport (ClutterStageView *view,
|
|||||||
|
|
||||||
gboolean clutter_stage_view_is_dirty_projection (ClutterStageView *view);
|
gboolean clutter_stage_view_is_dirty_projection (ClutterStageView *view);
|
||||||
|
|
||||||
void clutter_stage_view_set_dirty_projection (ClutterStageView *view,
|
void clutter_stage_view_invalidate_projection (ClutterStageView *view);
|
||||||
gboolean dirty);
|
|
||||||
|
|
||||||
void clutter_stage_view_set_projection (ClutterStageView *view,
|
void clutter_stage_view_set_projection (ClutterStageView *view,
|
||||||
const CoglMatrix *matrix);
|
const CoglMatrix *matrix);
|
||||||
|
@ -354,13 +354,12 @@ clutter_stage_view_is_dirty_viewport (ClutterStageView *view)
|
|||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
clutter_stage_view_set_dirty_viewport (ClutterStageView *view,
|
clutter_stage_view_invalidate_viewport (ClutterStageView *view)
|
||||||
gboolean dirty)
|
|
||||||
{
|
{
|
||||||
ClutterStageViewPrivate *priv =
|
ClutterStageViewPrivate *priv =
|
||||||
clutter_stage_view_get_instance_private (view);
|
clutter_stage_view_get_instance_private (view);
|
||||||
|
|
||||||
priv->dirty_viewport = dirty;
|
priv->dirty_viewport = TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
@ -389,13 +388,12 @@ clutter_stage_view_is_dirty_projection (ClutterStageView *view)
|
|||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
clutter_stage_view_set_dirty_projection (ClutterStageView *view,
|
clutter_stage_view_invalidate_projection (ClutterStageView *view)
|
||||||
gboolean dirty)
|
|
||||||
{
|
{
|
||||||
ClutterStageViewPrivate *priv =
|
ClutterStageViewPrivate *priv =
|
||||||
clutter_stage_view_get_instance_private (view);
|
clutter_stage_view_get_instance_private (view);
|
||||||
|
|
||||||
priv->dirty_projection = dirty;
|
priv->dirty_projection = TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
@ -2434,7 +2434,7 @@ _clutter_stage_dirty_projection (ClutterStage *stage)
|
|||||||
{
|
{
|
||||||
ClutterStageView *view = l->data;
|
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;
|
ClutterStageView *view = l->data;
|
||||||
|
|
||||||
clutter_stage_view_set_dirty_viewport (view, TRUE);
|
clutter_stage_view_invalidate_viewport (view);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user