[gtk+] wayland: Protocol change: wl_buffer_damage
- From: Rob Bradford <rbradford src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] wayland: Protocol change: wl_buffer_damage
- Date: Thu, 12 Jul 2012 15:00:25 +0000 (UTC)
commit 33b9f8e1b8e1131d17ed77585cdeb53b623a49dc
Author: Rob Bradford <rob linux intel com>
Date: Wed Jul 11 14:40:31 2012 +0100
wayland: Protocol change: wl_buffer_damage
wl_buffer_damage is no longer necessary - it is sufficient to damage the
surface that the buffer is attached to instead.
gdk/wayland/gdkwindow-wayland.c | 14 --------------
1 files changed, 0 insertions(+), 14 deletions(-)
---
diff --git a/gdk/wayland/gdkwindow-wayland.c b/gdk/wayland/gdkwindow-wayland.c
index 731c0fd..963da15 100644
--- a/gdk/wayland/gdkwindow-wayland.c
+++ b/gdk/wayland/gdkwindow-wayland.c
@@ -1511,9 +1511,6 @@ gdk_wayland_window_process_updates_recurse (GdkWindow *window,
cairo_region_t *region)
{
GdkWindowImplWayland *impl = GDK_WINDOW_IMPL_WAYLAND (window->impl);
-#ifndef GDK_WAYLAND_USE_EGL
- GdkWaylandCairoSurfaceData *data = NULL;
-#endif
cairo_rectangle_int_t rect;
int i, n;
@@ -1522,21 +1519,10 @@ gdk_wayland_window_process_updates_recurse (GdkWindow *window,
if (impl->cairo_surface)
gdk_wayland_window_attach_image (window);
-#ifndef GDK_WAYLAND_USE_EGL
- if (impl->server_surface)
- data = cairo_surface_get_user_data (impl->server_surface,
- &gdk_wayland_cairo_key);
-#endif
-
n = cairo_region_num_rectangles(region);
for (i = 0; i < n; i++)
{
cairo_region_get_rectangle (region, i, &rect);
-#ifndef GDK_WAYLAND_USE_EGL
- if (data && data->buffer)
- wl_buffer_damage (data->buffer,
- rect.x, rect.y, rect.width, rect.height);
-#endif
wl_surface_damage (impl->surface,
rect.x, rect.y, rect.width, rect.height);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]