mirror of
https://github.com/brl/mutter.git
synced 2024-11-28 11:00:54 -05:00
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:
parent
5a25f2f62b
commit
eede3d1836
@ -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)
|
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);
|
&surface->viewport.src_rect);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
meta_surface_actor_reset_viewport_src_rect (surface_actor);
|
meta_shaped_texture_reset_viewport_src_rect (stex);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (surface->viewport.has_dst_size)
|
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_width,
|
||||||
surface->viewport.dst_height);
|
surface->viewport.dst_height);
|
||||||
}
|
}
|
||||||
else
|
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);
|
meta_shaped_texture_ensure_size_valid (stex);
|
||||||
|
Loading…
Reference in New Issue
Block a user