summaryrefslogtreecommitdiffstats
path: root/glx-compositor.c
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@redhat.com>2008-11-07 08:39:37 -0500
committerKristian Høgsberg <krh@redhat.com>2008-11-07 08:39:37 -0500
commit7f77bd8fbedee8a8a1fbb26776084ccaffc2a087 (patch)
tree1d93060c20a11ece0fef71d3a061d918072f40c2 /glx-compositor.c
parent5503bf82c44b2da26c27582b3d4400d7fd8d23c3 (diff)
downloadwayland-7f77bd8fbedee8a8a1fbb26776084ccaffc2a087.tar.gz
wayland-7f77bd8fbedee8a8a1fbb26776084ccaffc2a087.tar.xz
wayland-7f77bd8fbedee8a8a1fbb26776084ccaffc2a087.zip
Add copy and damage surface requests.
Diffstat (limited to 'glx-compositor.c')
-rw-r--r--glx-compositor.c23
1 files changed, 22 insertions, 1 deletions
diff --git a/glx-compositor.c b/glx-compositor.c
index 574caaf..2c3e7e3 100644
--- a/glx-compositor.c
+++ b/glx-compositor.c
@@ -207,11 +207,32 @@ notify_surface_map(struct wl_compositor *compositor,
schedule_repaint(gc);
}
+static void
+notify_surface_copy(struct wl_compositor *compositor,
+ struct wl_surface *surface,
+ int32_t dst_x, int32_t dst_y,
+ uint32_t name, uint32_t stride,
+ int32_t x, int32_t y, int32_t width, int32_t height)
+{
+}
+
+static void
+notify_surface_damage(struct wl_compositor *compositor,
+ struct wl_surface *surface,
+ int32_t x, int32_t y, int32_t width, int32_t height)
+{
+ struct glx_compositor *gc = (struct glx_compositor *) compositor;
+
+ schedule_repaint(gc);
+}
+
static const struct wl_compositor_interface interface = {
notify_surface_create,
notify_surface_destroy,
notify_surface_attach,
- notify_surface_map
+ notify_surface_map,
+ notify_surface_copy,
+ notify_surface_damage
};
static const char gem_device[] = "/dev/dri/card0";