I suppose obigo wants to make the render result as texture input for UI process,right?
If so, I think obigo can refer to the implementation about unity 3d compositor.
In X system, all GLES application(including webkit) will render the result into buffer allocated from xserver.
The main idea is 3d compositor will get the render result from xserver through some x11 extension, then map it as texture through eglimage for rendering.