<div dir="ltr">Hi,<div><br></div><div>I am trying to port libwebkitgtk to an embedded system running a media center software called KODI. The hardware is ARM. I managed to cross-compile libwebkitgtk and all its dependencies for ARM.</div><div><br></div><div>My goal now is to render a web page in memory and then put everything on a OpenGL surface (because the media center software mentioned above uses OpenGL).</div><div><br></div><div>I have 2 questions :</div><div><br></div><div><b>1.</b> I plan to create an offscreen window (gtk_offscreen_window_new()), put my webview in that offscreen window, then get the Cairo surface (gtk_offscreen_window_get_surface()) and finally copy the Cairo surface into an OpenGL texture with glTexImage2D().</div><div><br></div><div>Is that the right approach ?</div><div><br></div><div><b>2.</b> When I tested the above approach in a simple helloworld program, I was surprised to see an error about the display that could not be opened (I was running my program from a remote terminal). So apparently, my program is trying to use X11. I don&#39;t want to use X11, I just need to do plain memory rendering with webkit. I found that webkit has different backends. One of them is directfb. Would you please confirm that this is the right one to use for my scenario ?</div><div><br></div><div>Thanks</div><div><br></div><div>Nabil.</div><div><br></div></div>