wayland-surface: don't queue redraw on buffer attach
authorRobert Bragg <robert@linux.intel.com>
Mon, 13 Feb 2012 13:20:02 +0000 (13:20 +0000)
committerNeil Roberts <neil@linux.intel.com>
Thu, 1 Mar 2012 11:41:51 +0000 (11:41 +0000)
Reviewed-by: Neil Roberts <neil@linux.intel.com>
Reviewed-by: Emmanuele Bassi <ebassi@linux.intel.com>
clutter/wayland/clutter-wayland-surface.c

index b32b1dc..a86f04e 100644 (file)
@@ -527,10 +527,13 @@ clutter_wayland_surface_attach_buffer (ClutterWaylandSurface *self,
   priv->buffer =
     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]);
 
+  /* 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)
     return FALSE;