summaryrefslogtreecommitdiff
path: root/src/pixman-renderer.c
diff options
context:
space:
mode:
authorPekka Paalanen <ppaalanen@gmail.com>2013-05-22 18:03:04 +0300
committerKristian Høgsberg <krh@bitplanet.net>2013-05-22 16:46:43 -0400
commit7bb6510748522d31fb711257126f2231533d4dd1 (patch)
treed4952871a4f455e876adf1843cba53d690df93a3 /src/pixman-renderer.c
parent9bdfc48f09e0bfd5e59e0e27790282aa9be4f46d (diff)
downloadweston-7bb6510748522d31fb711257126f2231533d4dd1.tar.gz
compositor: add capability flag for arbitrary surface rotation
The upcoming rpi-renderer cannot handle arbitrary rotations. Introduce Weston capability bits, and add a bit for arbitrary rotation. GL and Pixman renderers support it. Shell or any other module must not produce surface transformations with rotation, if the capability bit is not set. Do not register the surface rotation binding in desktop shell, if arbitary rotation is not supported. Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
Diffstat (limited to 'src/pixman-renderer.c')
-rw-r--r--src/pixman-renderer.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/pixman-renderer.c b/src/pixman-renderer.c
index b1bbcd6a..eea32fc0 100644
--- a/src/pixman-renderer.c
+++ b/src/pixman-renderer.c
@@ -658,6 +658,7 @@ pixman_renderer_init(struct weston_compositor *ec)
renderer->base.destroy_surface = pixman_renderer_destroy_surface;
renderer->base.destroy = pixman_renderer_destroy;
ec->renderer = &renderer->base;
+ ec->capabilities |= WESTON_CAP_ROTATION_ANY;
weston_compositor_add_debug_binding(ec, KEY_R,
debug_binding, ec);