[clutter/wip/wayland-2: 21/22] wayland-surface: don't queue redraw on buffer attach
- From: Neil Roberts <nroberts src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [clutter/wip/wayland-2: 21/22] wayland-surface: don't queue redraw on buffer attach
- Date: Wed, 29 Feb 2012 17:58:19 +0000 (UTC)
commit 7e7d99101eee3585c6895b7a48e57930bd7f8345
Author: Robert Bragg <robert linux intel com>
Date: Mon Feb 13 13:20:02 2012 +0000
wayland-surface: don't queue redraw on buffer attach
Reviewed-by: Neil Roberts <neil linux intel com>
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 4cec746..1db3b00 100644
--- a/clutter/wayland/clutter-wayland-surface.c
+++ b/clutter/wayland/clutter-wayland-surface.c
@@ -544,10 +544,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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]