Skip to content

Linux: Add ozone support as an alternative to X11 #1989

Closed

Description

@magreenblatt

Original report by me.


CEF currently has a dependency on X11 that makes it difficult/impossible to run on alternative Window Managers (WMs) such as Wayland. Chromium currently supports alternative WMs using the Ozone platform [1]. CEF will add support for Ozone as follows:

  1. Make the X11 dependency a compile-time option.
  2. Expose the Ozone API as a way for client applications to support alternative WMs.
  3. Provide an example implementation of the Ozone API in CEF sample applications for at least Wayland.

The scope of this issue is to support Ozone only on the Linux platform. In the future support may be extended to other platforms, in which case it may resolve issue #1006 (support rendering to a hardware GL/D3D texture/surface provided by the client).

[1] https://www.chromium.org/developers/design-documents/ozone

Activity

  1. magreenblatt commented on Sep 16, 2016

    @magreenblatt
    CollaboratorAuthor

    Original comment by ArmsOfSorrow (Bitbucket: ArmsOfSorrow).


    I'd like to port Blink/CEF to Sailfish OS (ARM Linux based on Mer, EGL/Wayland for graphics) because the default browser seems very much outdated. That'd make it substantially easier.

    Also, I like new and shiny stuff on desktop, too (or anything that gets rid of X, really).

  2. magreenblatt commented on Sep 16, 2016

    @magreenblatt
    CollaboratorAuthor

    The ozone-wayland project is currently working to upstream their changes [1]. Once complete that will hopefully make it possible to build CEF for Wayland (instead of X11) without requiring any special ozone implementation in the client.

    [1] https://bugs.chromium.org/p/chromium/issues/detail?id=578890

  3. magreenblatt commented on Dec 1, 2016

    @magreenblatt
    CollaboratorAuthor

    Original comment by Anonymous.


    I'm very interested in this and therefore I have some questions/findings:

    1. As there is no views::DesktopWindowTreeHost, but a aura::WindowTreeHostPlatform implementation for Ozone, I assume that views won't be used for this?
    2. Do you already have an rough idea of how this exposure of the Ozone API may look like?
    3. The Ozone platform does not support parenting/nesting of windows. Where is this platform dependent code going to take place?

    The third point seems to be quite complicated for Wayland, because you can not share surfaces between Wayland connections. This means that there has to be a way to pass a connection from the client application to CEF and down to the Ozone platform.

  4. magreenblatt commented on Apr 28, 2017

    @magreenblatt
    CollaboratorAuthor
    • set component to "Framework"
  5. magreenblatt commented on Nov 8, 2017

    @magreenblatt
    CollaboratorAuthor

    Duplicate of #2296.

  6. magreenblatt commented on Nov 8, 2017

    @magreenblatt
    CollaboratorAuthor
    • changed state from "new" to "duplicate"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Frameworkenhancementlinux

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions