diff --git a/src/compositor/meta-surface-actor-wayland.c b/src/compositor/meta-surface-actor-wayland.c index f0721280e..ba4e5175b 100644 --- a/src/compositor/meta-surface-actor-wayland.c +++ b/src/compositor/meta-surface-actor-wayland.c @@ -183,7 +183,7 @@ meta_surface_actor_wayland_dispose (GObject *object) { MetaSurfaceActorWayland *self = META_SURFACE_ACTOR_WAYLAND (object); - meta_surface_actor_wayland_set_buffer (self, NULL); + meta_surface_actor_wayland_set_texture (self, NULL); G_OBJECT_CLASS (meta_surface_actor_wayland_parent_class)->dispose (object); } @@ -230,18 +230,10 @@ meta_surface_actor_wayland_new (MetaWaylandSurface *surface) } void -meta_surface_actor_wayland_set_buffer (MetaSurfaceActorWayland *self, - MetaWaylandBuffer *buffer) +meta_surface_actor_wayland_set_texture (MetaSurfaceActorWayland *self, + CoglTexture *texture) { - MetaSurfaceActorWaylandPrivate *priv = meta_surface_actor_wayland_get_instance_private (self); MetaShapedTexture *stex = meta_surface_actor_get_texture (META_SURFACE_ACTOR (self)); - CoglTexture *texture; - - if (buffer) - texture = buffer->texture; - else - texture = NULL; - meta_shaped_texture_set_texture (stex, texture); } diff --git a/src/compositor/meta-surface-actor-wayland.h b/src/compositor/meta-surface-actor-wayland.h index efd4a5643..ed129d7e1 100644 --- a/src/compositor/meta-surface-actor-wayland.h +++ b/src/compositor/meta-surface-actor-wayland.h @@ -58,8 +58,8 @@ GType meta_surface_actor_wayland_get_type (void); MetaSurfaceActor * meta_surface_actor_wayland_new (MetaWaylandSurface *surface); MetaWaylandSurface * meta_surface_actor_wayland_get_surface (MetaSurfaceActorWayland *self); -void meta_surface_actor_wayland_set_buffer (MetaSurfaceActorWayland *self, - MetaWaylandBuffer *buffer); +void meta_surface_actor_wayland_set_texture (MetaSurfaceActorWayland *self, + CoglTexture *texture); double meta_surface_actor_wayland_get_scale (MetaSurfaceActorWayland *actor); diff --git a/src/wayland/meta-wayland-surface.c b/src/wayland/meta-wayland-surface.c index eca1c843b..a2b603e56 100644 --- a/src/wayland/meta-wayland-surface.c +++ b/src/wayland/meta-wayland-surface.c @@ -413,7 +413,7 @@ commit_pending_state (MetaWaylandSurface *surface, if (pending->buffer) { ensure_buffer_texture (pending->buffer); - meta_surface_actor_wayland_set_buffer (META_SURFACE_ACTOR_WAYLAND (surface->surface_actor), pending->buffer); + meta_surface_actor_wayland_set_texture (META_SURFACE_ACTOR_WAYLAND (surface->surface_actor), pending->buffer->texture); } }