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.
signature.asc
Description: OpenPGP digital signature
_______________________________________________ webkit-gtk mailing list [email protected] https://lists.webkit.org/mailman/listinfo/webkit-gtk
