Sub-surface protocol

Bill Spitzak spitzak at gmail.com
Mon Dec 17 21:40:07 PST 2012


On Dec 17, 2012, at 5:01 PM, John Kåre Alsaker wrote:
>> 
>> Then a client such as gimp could draw all it's display into a single buffer.
>> To get the different color correction of the center display, it would
>> declare a subsurface containing this and set it's color correction
>> differently using the wayland api. This would only allocate one buffer,
>> which would save memory, but more importantly it should make internal code
>> in gimp easier as you could work around a toolkit that assumes only one
>> output buffer.
> My approach to color correct rendering in Wayland is to let the
> compositor handle it and have the clients simply specify which color
> space they are using. Only the compositor can render clients correctly
> when they are displayed on multiple monitors (unless we introduce a
> way to set a buffer per-output).

Yes this is what I am assuming.

What I am asking is if it makes sense for a client to draw two different color spaces into the same buffer. The larger area is color space A, and a rectangular subarea is color space B. It then tells wayland to make the main window color space A, and then makes a subwindow with the clipped subarea and tells wayland that it is color space B.

The reason is to save buffer space, and also to work around toolkits and drawing api's where it is a lot more practical to draw everything into the same buffer.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/wayland-devel/attachments/20121217/0c948c6c/attachment.html>


More information about the wayland-devel mailing list