nested: Add a renderer using subsurfaces
authorNeil Roberts <neil@linux.intel.com>
Sun, 8 Sep 2013 23:41:29 +0000 (00:41 +0100)
committerKristian Høgsberg <krh@bitplanet.net>
Thu, 5 Dec 2013 00:34:07 +0000 (16:34 -0800)
commit1f020a1fdbc09b04fdc0a4330f28afadc32266cb
tree7f96a2442db6ce2f2ab5fa977429a9dd197cef73
parent5e10a0448135b49a87e5752e79a48b00d7deb83a
nested: Add a renderer using subsurfaces

Adds a second renderer implementation to the nested compositor example
that creates a subsurface for each of the client's surfaces. The
client buffers are directly attached to the subsurface using the
EGL_WL_create_wayland_buffer_from_image extension instead of blitting
them in the redraw_handler.

The new renderer is always used if the parent compositor supports the
wl_subcompositor protocol and the EGL extension is available.
Otherwise it will fall back to the blit renderer.
clients/nested.c