[clutter/clutter-1.18] clutter-stage-wayland: Enable clipped redraws
- From: Adel Gadllah <agadllah src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [clutter/clutter-1.18] clutter-stage-wayland: Enable clipped redraws
- Date: Fri, 14 Mar 2014 16:57:07 +0000 (UTC)
commit f649d732f9c2507664a85e5358ccd6b541ffb24a
Author: Adel Gadllah <adel gadllah gmail com>
Date: Fri Mar 14 10:55:52 2014 +0100
clutter-stage-wayland: Enable clipped redraws
_clutter_stage_window_can_clip_redraws is used to check for clipped redraws
support but can_clip_redraws is not implemented by clutter-stage-wayland so
it always returns FALSE causing full screen redraws.
Fix that by implementing can_clip_redraws in clutter-stage-wayland.
https://bugzilla.gnome.org/show_bug.cgi?id=726315
clutter/wayland/clutter-stage-wayland.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/clutter/wayland/clutter-stage-wayland.c b/clutter/wayland/clutter-stage-wayland.c
index 4c3e0c3..a9658bf 100644
--- a/clutter/wayland/clutter-stage-wayland.c
+++ b/clutter/wayland/clutter-stage-wayland.c
@@ -229,6 +229,12 @@ clutter_stage_wayland_resize (ClutterStageWindow *stage_window,
}
}
+static gboolean
+clutter_stage_wayland_can_clip_redraws (ClutterStageWindow *stage_window)
+{
+ return TRUE;
+}
+
static void
clutter_stage_wayland_init (ClutterStageWayland *stage_wayland)
{
@@ -245,6 +251,7 @@ clutter_stage_window_iface_init (ClutterStageWindowIface *iface)
iface->set_fullscreen = clutter_stage_wayland_set_fullscreen;
iface->set_cursor_visible = clutter_stage_wayland_set_cursor_visible;
iface->resize = clutter_stage_wayland_resize;
+ iface->can_clip_redraws = clutter_stage_wayland_can_clip_redraws;
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]