clutter/stage-view: Rename offscreen pipeline vfunc

It doesn't really "set it up", it just sets the transform according to
the renderer view state. We'll do more setup outside, so lets rename it.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3443>
This commit is contained in:
Jonas Ådahl 2023-10-13 16:40:37 +08:00 committed by Marge Bot
parent a27949d25e
commit b282097834
3 changed files with 8 additions and 8 deletions

@ -200,8 +200,8 @@ clutter_stage_view_ensure_offscreen_blit_pipeline (ClutterStageView *view)
priv->offscreen_pipeline =
clutter_stage_view_create_offscreen_pipeline (priv->offscreen);
if (view_class->setup_offscreen_blit_pipeline)
view_class->setup_offscreen_blit_pipeline (view, priv->offscreen_pipeline);
if (view_class->setup_offscreen_transform)
view_class->setup_offscreen_transform (view, priv->offscreen_pipeline);
}
void

@ -39,7 +39,7 @@ struct _ClutterStageViewClass
{
GObjectClass parent_class;
void (* setup_offscreen_blit_pipeline) (ClutterStageView *view,
void (* setup_offscreen_transform) (ClutterStageView *view,
CoglPipeline *pipeline);
void (* get_offscreen_transformation_matrix) (ClutterStageView *view,

@ -92,7 +92,7 @@ meta_renderer_view_get_offscreen_transformation_matrix (ClutterStageView *view,
}
static void
meta_renderer_view_setup_offscreen_blit_pipeline (ClutterStageView *view,
meta_renderer_view_setup_offscreen_transform (ClutterStageView *view,
CoglPipeline *pipeline)
{
graphene_matrix_t matrix;
@ -192,8 +192,8 @@ meta_renderer_view_class_init (MetaRendererViewClass *klass)
GObjectClass *object_class = G_OBJECT_CLASS (klass);
ClutterStageViewClass *view_class = CLUTTER_STAGE_VIEW_CLASS (klass);
view_class->setup_offscreen_blit_pipeline =
meta_renderer_view_setup_offscreen_blit_pipeline;
view_class->setup_offscreen_transform =
meta_renderer_view_setup_offscreen_transform;
view_class->get_offscreen_transformation_matrix =
meta_renderer_view_get_offscreen_transformation_matrix;
view_class->transform_rect_to_onscreen =