Skip to content

Draft: [CHROMIUM] enable and use angle (egl-gles2) in ozone wayland

Alessandro Pecugi requested to merge ap/ozone-wayland-angle into kirkstone

Currently chromium is launched with --use-gl=egl which activates the default EGL/GLES backend, but that doesn't work on px30 and rk3568. Chromium runs with poor performance and often crashes, flickers and renders some pages incorrectly.

Also, it outputs this error repeatedly

[...:ERROR:GrGLRenderTarget.cpp(259)] WARNING: failed to attach stencil.

when running, e.g., this benchmark: https://browserbench.org/MotionMark1.3/

In meta-rockchip the backend used is ANGLE with ANGLE's EGL/GLES2 backend, which allows to enable the passthrough command decoder (--use-cmd-decoder=passthrough), which works on rockchip. https://github.com/JeffyCN/meta-rockchip/commit/d1919a98417a5e97a848c21e059e9bbf5b88f668

  • the changes to chromium-%.bbappend add the necessary cmdline args to enable angle with egl/gles2 and passthrough
  • the patch comes from chromium upstream and adds angle-opengl and angle-opengles to ozone (which currently only supports angle's swiftshader backend)

Chromium issue: https://bugs.chromium.org/p/chromium/issues/detail?id=1231934&no_tracker_redirect=1

Tested on rk3568 (e09, e14).

Edited by Alessandro Pecugi

Merge request reports

Loading