mirror of
https://github.com/brl/mutter.git
synced 2024-11-26 18:11:05 -05:00
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:
parent
692a8a4d93
commit
93ba039b90
@ -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);
|
||||||
|
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user