diff options
author | Robert Bragg <robert@linux.intel.com> | 2012-02-13 13:20:02 +0000 |
---|---|---|
committer | Neil Roberts <neil@linux.intel.com> | 2012-03-01 11:41:51 +0000 |
commit | b5c90f6caaf0457c0f81720060f4a69cf2bd59fb (patch) | |
tree | 49340448488301c7d5bfb1b19e7c76593b99da10 | |
parent | 3c6a0cdc610ba434beed733bde548175d665cc36 (diff) | |
download | clutter-b5c90f6caaf0457c0f81720060f4a69cf2bd59fb.tar.gz |
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>
-rw-r--r-- | clutter/wayland/clutter-wayland-surface.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/clutter/wayland/clutter-wayland-surface.c b/clutter/wayland/clutter-wayland-surface.c index b32b1dcea..a86f04e32 100644 --- a/clutter/wayland/clutter-wayland-surface.c +++ b/clutter/wayland/clutter-wayland-surface.c @@ -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; |