Find a file
Ander Conselvan de Oliveira 555c17ddd8 compositor-drm: refactor to avoid unnecessary allocation of KMS FBs
Currently, the drm backend will create and destroy a KMS FB for each
frame. However, the bos for a gbm surface are reused (at least with
mesa) so we can store the fb_id on it and destroy it only on the bo's
destroy callback.

To use the same path for scanning out client buffers, some refactor
was needed. Previously, the bo for the client buffer was destroyed
early so that gbm_surface_release_buffer() would not be called with
it, since at the page flip handler output->scanout_buffer can be
NULL even if the current frame is a client buffer.

This was solved by adding a drm_fb structure that holds a gbm_bo,
an fb_id, and information about the fb coming from a client buffer
or not. A drm_fb is created in such a way that it is destroyed
whenever the bo it references is destroyed. The fields current_*
and next_* in drm_output are changed into only two pointers to
drm_fb's.
2012-05-02 10:04:26 -04:00
clients window: Set window title and class 2012-05-02 09:47:55 -04:00
data compositor-wayland: Add window border 2012-02-07 11:02:59 -05:00
protocol screenshooter: Grab pixel data directly before buffer swap 2012-04-20 16:13:27 -04:00
shared config-parser: add missing return for an error case 2012-04-17 14:33:30 +03:00
src compositor-drm: refactor to avoid unnecessary allocation of KMS FBs 2012-05-02 10:04:26 -04:00
tests tests: Add event-test, which tests for a few incoming events 2012-04-27 15:03:06 -04:00
.gitignore Clean up .gitignore files 2010-11-11 20:11:27 -05:00
autogen.sh Update autotools configuration 2010-11-06 21:04:03 -04:00
configure.ac Always build tests 2012-04-11 09:38:32 -04:00
COPYING Add COPYING 2012-04-25 10:17:42 -04:00
Makefile.am Disable setuid install for distcheck 2012-02-09 09:20:44 -05:00
README Split into a demo repository that holds the demo compositor and clients 2011-02-14 22:13:33 -05:00
weston.ini shell-animation: add conf option in shell 2012-04-25 10:38:19 -04:00

Wayland Demos

This repository contains a few demos application for the Wayland
project.  There's a sample compositor that can run on KMS, under X11
or under another Wayland compositor and there's a handful of simple
clients that demonstrate various aspects of Wayland: