[webkit-gtk] Accelerated Compositing w/ OpenGL ES

Martin Robinson mrobinson at webkit.org
Tue Feb 19 23:19:47 PST 2013

On Tue, Feb 19, 2013 at 10:32 PM, Ben Rockefeller
<benrockefeller5 at gmail.com> wrote:
> I compiled webkitgtk+ 1.11.5 Linux to use OpenGL ES backend. But if I look
> at AcceleratedCompositingContextGL.cpp it includes GL/gl.h ! It seems this
> file is getting compiled but it is ignoring that I am using GLESv2.

That's a bug, though likely a harmless one as the symbols used in that
file are the same between OpenGL ES and OpenGL. It should still be
fixed. :)

> Furthermore if I do enable accelerated-compositing through web view settings
> all I get is a white page (without accelerated-compositing it renders ok).

Now this sounds like a bug with either the TextureMapper or the GLES
version of our accelerated compositng support. Can you try compiling
using Desktop GL?

> Could someone please explain if accelerated compositing with OpenGL ES is
> supposed to work? And if not, then where should I look at to implement it.

Yes, it's supposed to work modulo bugs.

> Also has anyone here tried cairogles to see if it improves webkit gtk
> performance...

There's a patch on Bugzilla integrating it for accelerated canvas [1].
Whether or not it's faster than the software renderer depends a lot on
your hardware.

1. https://bugs.webkit.org/show_bug.cgi?id=104672


More information about the webkit-gtk mailing list