[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
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):
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...
Size: 883 bytes
Desc: OpenPGP digital signature
More information about the webkit-gtk