clutter/paint-volume: Mark a paint volume argument as const

The function _clutter_paint_volume_get_stage_paint_box() actually
doesn't modify the paint volume that's passed to it, so make that a bit
more clear by passing a const paint volume as the argument.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1492>
This commit is contained in:
Jonas Dreßler 2020-10-17 12:54:01 +02:00 committed by Marge Bot
parent 692a8a4d93
commit 93ba039b90
2 changed files with 6 additions and 6 deletions

View File

@ -126,9 +126,9 @@ void _clutter_paint_volume_set_reference_actor (ClutterPaintVolu
ClutterCullResult _clutter_paint_volume_cull (ClutterPaintVolume *pv, ClutterCullResult _clutter_paint_volume_cull (ClutterPaintVolume *pv,
const graphene_frustum_t *frustum); const graphene_frustum_t *frustum);
void _clutter_paint_volume_get_stage_paint_box (ClutterPaintVolume *pv, void _clutter_paint_volume_get_stage_paint_box (const ClutterPaintVolume *pv,
ClutterStage *stage, ClutterStage *stage,
ClutterActorBox *box); ClutterActorBox *box);
void _clutter_paint_volume_transform_relative (ClutterPaintVolume *pv, void _clutter_paint_volume_transform_relative (ClutterPaintVolume *pv,
ClutterActor *relative_to_ancestor); ClutterActor *relative_to_ancestor);

View File

@ -1029,9 +1029,9 @@ _clutter_paint_volume_cull (ClutterPaintVolume *pv,
} }
void void
_clutter_paint_volume_get_stage_paint_box (ClutterPaintVolume *pv, _clutter_paint_volume_get_stage_paint_box (const ClutterPaintVolume *pv,
ClutterStage *stage, ClutterStage *stage,
ClutterActorBox *box) ClutterActorBox *box)
{ {
ClutterPaintVolume projected_pv; ClutterPaintVolume projected_pv;
graphene_matrix_t modelview; graphene_matrix_t modelview;