[webkit-gtk] Is accelerated compositing (AC) successfully supported in webkitgtk2.4.9/webkit2 with X11 as backend?

Carlos Alberto Lopez Perez clopez at igalia.com
Wed Mar 9 04:50:41 PST 2016


On 09/03/16 08:47, Huang Xinsheng wrote:
> Thanks, Michael. You do help a lot.
> For MiniBrowser using webkit2, how can we forcibly using GPU in AC (if GPU is available) when running the AC case? 
> Is there any necessary code change when building webkitgtk or MiniBrowser?
> AC case: https://webkit.org/blog-files/3d-transforms/poster-circle.html
>  
> Best Regards
> Eric

If you have built WebKitGTK+ with either -DENABLE_GLES2=ON (if your GPU supports
OpenGL ES 2.0) or with -DENABLE_OPENGL=ON (if it supports the full OpenGL API)
then it should be enabled.

To double-check, you can also check if the WebKitWebProcess binary is linked
against your GL libraries. Example:

$ ldd /usr/lib/x86_64-linux-gnu/webkit2gtk-4.0/WebKitWebProcess | grep GL
	libGL.so.1 => /usr/lib/x86_64-linux-gnu/libGL.so.1 (0x00007f3208c10000)
	libEGL.so.1 => /usr/lib/x86_64-linux-gnu/libEGL.so.1 (0x00007f3208907000)


If you want to make AC to be always on and avoid entering/exiting from AC mode
depending on the contents of the website you can set this environment variable before
executing the browser (only works with webkitgtk+ 2.10 or newer):

export WEBKIT_FORCE_COMPOSITING_MODE=1

Note: this will not make AC work if for some reason it is not working.
It will just prevent the browser from exiting AC mode if AC is working.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 883 bytes
Desc: OpenPGP digital signature
URL: <https://lists.webkit.org/pipermail/webkit-gtk/attachments/20160309/5528499a/attachment.sig>


More information about the webkit-gtk mailing list