Building Chromium as a Wayland-only client

834 views
Skip to first unread message

Yves Arrouye

unread,
Sep 16, 2019, 3:22:32 PM9/16/19
to chromium-dev
Is that possible? I'd like to make a build for Linux that only works as Wayland client, without X etc. 

Can i do that by setting ozone_auto_platforms=false and then ozone_patform_wayland=true?  I am having trouble figuring out the right combinations from https://chromium.googlesource.com/chromium/src/+/HEAD/docs/ozone_overview.md (e.g. the "Wayland" section also says use_ozone=true use_system_minigbm=true use_system_libdrm=true).

YA

Maksim Sisov

unread,
Sep 17, 2019, 1:37:36 AM9/17/19
to drc...@chromium.org, chromium-dev
Hi Yves,

Ozone - is the abstraction layer that implements many other backends
like drm, x11, wayland, scenic and etc.

For Linux, only x11 and wayland available. Thus, to enable them, you
have to use the following args:

--------------------

use_ozone=true
ozone_auto_platforms=false
ozone_platform_wayland=true

--------------------

Furthermore, due to security restrictions for the gpu process and the
restrictions that the Wayland backend has, we are using gbm to create
dmabufs and pass them to Wayland.
That is, to be able to run hw accelerate Chromium in a multiprocess
mode, gbm was used. Chromium has own gbm library called minigbm, but it
is more for ChromeOS than Linux.
Though, one is able to run Chromium/Wayland on Linux with that library
as well.

However, it is recommended to use system libraries instead.

--------------------

use_system_minigbm=true
use_system_libdrm=true

--------------------

PS Please bear in mind that Ozone/Wayland is not in production yet and
unexpected failures are expected.
> --
> --
> Chromium Developers mailing list: chromi...@chromium.org
> View archives, change email options, or unsubscribe:
> http://groups.google.com/a/chromium.org/group/chromium-dev
> ---
> You received this message because you are subscribed to the Google
> Groups "Chromium-dev" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to chromium-dev...@chromium.org.
> To view this discussion on the web visit
> https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/CAFpPgjqLGy-uyw8Ok-jsN52KsoYQ9nk2xRqbJXHcQ-yN7s-qMw%40mail.gmail.com
> [1].
>
>
> Links:
> ------
> [1]
> https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/CAFpPgjqLGy-uyw8Ok-jsN52KsoYQ9nk2xRqbJXHcQ-yN7s-qMw%40mail.gmail.com?utm_medium=email&utm_source=footer

--
Best Regards,
Maksim Sisov
0x8F4BE350.asc

Maksim Sisov

unread,
Sep 17, 2019, 1:40:30 AM9/17/19
to msi...@igalia.com, drc...@chromium.org, chromium-dev
On 17.09.2019 08:36, Maksim Sisov wrote:
> Hi Yves,
>
> Ozone - is the abstraction layer that implements many other backends
> like drm, x11, wayland, scenic and etc.
>
> For Linux, only x11 and wayland available. Thus, to enable them, you
> have to use the following args:

s/them/Wayland/
> --
0x8F4BE350.asc
Reply all
Reply to author
Forward
0 new messages