wayland/actor-surface: Remove some needles redirections

We already interact with the `MetaShapedTexture` directly.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1978>
This commit is contained in:
Robert Mader 2021-08-28 13:54:12 +02:00
parent 5a25f2f62b
commit eede3d1836

View File

@ -248,27 +248,27 @@ meta_wayland_actor_surface_real_sync_actor_state (MetaWaylandActorSurface *actor
}
}
meta_surface_actor_set_transform (surface_actor, surface->buffer_transform);
meta_shaped_texture_set_transform (stex, surface->buffer_transform);
if (surface->viewport.has_src_rect)
{
meta_surface_actor_set_viewport_src_rect (surface_actor,
meta_shaped_texture_set_viewport_src_rect (stex,
&surface->viewport.src_rect);
}
else
{
meta_surface_actor_reset_viewport_src_rect (surface_actor);
meta_shaped_texture_reset_viewport_src_rect (stex);
}
if (surface->viewport.has_dst_size)
{
meta_surface_actor_set_viewport_dst_size (surface_actor,
meta_shaped_texture_set_viewport_dst_size (stex,
surface->viewport.dst_width,
surface->viewport.dst_height);
}
else
{
meta_surface_actor_reset_viewport_dst_size (surface_actor);
meta_shaped_texture_reset_viewport_dst_size (stex);
}
meta_shaped_texture_ensure_size_valid (stex);