[PATCH 0/4] Document the output ID pool

Bryce Harrington bryce at osg.samsung.com
Wed Dec 23 21:18:44 PST 2015


Weston uses bitfields to keep track of various things about outputs,
such as which outputs a given view or surface is visible on.  Document
how these bitfield masks are created and maintained.

A consequence of this design is that weston can only support a maximum
of 32 outputs.  I'm not sure what exactly should happen if we reach 33
outputs, but I've at least added an assert to catch the situation before
things start going awry (at least when debugging is enabled).  There are
also some other signed/unsigned inconsistencies in how the masks are
managed that I've tried to address.

Bryce Harrington (4):
  compositor: Document routines relating to idle behavior
  compositor: Document how views and surfaces are mapped to outputs
  compositor: Verify that the maximum number of outputs is not exceeded
  compositor: Make types consistent for bitshifting unsigned ints

 src/compositor.c | 147 +++++++++++++++++++++++++++++++++++++++++++++++++++----
 1 file changed, 137 insertions(+), 10 deletions(-)

-- 
1.9.1



More information about the wayland-devel mailing list