Does chromium wayland use egl ?

815 views
Skip to first unread message

范文

unread,
Dec 14, 2021, 7:26:25 AM12/14/21
to Ozone-Dev, msi...@igalia.com
Hi everyone!
I am a beginner of wayland.I have tried wayland on ubuntu 20 and it works fine.

After analyzing the source code,I thought the window is created by CreateWaylandEglWindow when I launch chrome by ./chrome --ozone-platform=wayland --use-gl=egl, but the function is not called(not hit the breakpoint).

So, under what conditions(or what command-line) will CreateWaylandEglWindow  be called?
What's the relation between wayland and egl(opengl)?Are there any relevant documents?

Thanks.

Maksim Sisov

unread,
Dec 14, 2021, 7:32:12 AM12/14/21
to 范文, Ozone-Dev

Hi,

By default, we don't use Wayland EGL. Instead, we use a surfaceless path that uses libgbm to created dumb buffers, which handles are then exported as dmabuf and passed further. 

If you want to use Wayland EGL, you need to recompile chrome with use_wayland_gbm = false and run the browser with --in-process-gpu.

--
To unsubscribe from this group and stop receiving emails from it, send an email to ozone-dev+...@chromium.org.


--
Best Regards,
Maksim Sisov
* Usual work time - 08:00-16:00 (EEST).
Reply all
Reply to author
Forward
0 new messages