1
0
Fork 0

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

View file

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

View file

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

View file

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