question about pixmap in wayland?

Kristian Høgsberg krh at bitplanet.net
Mon Jun 20 12:54:09 PDT 2011


On Sun, Jun 19, 2011 at 10:25 PM, Zhao, Juan J <juan.j.zhao at intel.com> wrote:
> Hi guys,
>        How will the offscreen render buffer behave? (for example pixmap?)
> Maybe in wayland, there will be no offscreen? Or all the clients will be
> offscreen?

It depends on your drawing API.  If you're using EGL you can use
native pixmaps (wl_egl_pixmap) or you can use pbuffers.  Within
GL/GLES2, you can create a texture or a renderbuffer and render to
those using an FBO.  Or create a wl_egl_pixmap, create a EGL image
from it and use that with an FBO.

>        Is the pixmap of the window shared for all the clients? Or only shared
> to the compositor?

The buffer for a window is only accessible to the client and the compositor.

Kristian


More information about the wayland-devel mailing list