mirror of
https://github.com/brl/mutter.git
synced 2024-12-24 12:02:04 +00:00
wayland-surface: don't queue redraw on buffer attach
Reviewed-by: Neil Roberts <neil@linux.intel.com> Reviewed-by: Emmanuele Bassi <ebassi@linux.intel.com>
This commit is contained in:
parent
3c6a0cdc61
commit
b5c90f6caa
@ -527,10 +527,13 @@ clutter_wayland_surface_attach_buffer (ClutterWaylandSurface *self,
|
|||||||
priv->buffer =
|
priv->buffer =
|
||||||
cogl_wayland_texture_2d_new_from_buffer (context, buffer, error);
|
cogl_wayland_texture_2d_new_from_buffer (context, buffer, error);
|
||||||
|
|
||||||
clutter_actor_queue_redraw (CLUTTER_ACTOR (self));
|
|
||||||
|
|
||||||
g_object_notify_by_pspec (G_OBJECT (self), obj_props[PROP_COGL_TEXTURE]);
|
g_object_notify_by_pspec (G_OBJECT (self), obj_props[PROP_COGL_TEXTURE]);
|
||||||
|
|
||||||
|
/* NB: We don't queue a redraw of the actor here because we don't
|
||||||
|
* know how much of the buffer has changed with respect to the
|
||||||
|
* previous buffer. We only ever queue a redraw in response to
|
||||||
|
* surface damage. */
|
||||||
|
|
||||||
if (!priv->buffer)
|
if (!priv->buffer)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user