Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The prototype implementation of the pure Wayland toolkit (JDK-8281970) based on OpneJDK 21 25 source base can be found in the Wakefield repository (jdk21.0.1jdk25-wayland branch). It has two rendering pipelines:

  • Pure software loops (enabled by default)
  • Hardware-accelerated rendering using Vulkan Accelerated blitting of the resulting frame (enabled by providing -Dsun.java2d.vulkan=True|true)
  • Complete hardware acceleration including the rendering of all graphics primitives  (enabled by providing -Dsun.java2d.vulkan=True|true -Dsun.java2d.vulkan.accelsd=true)

Complete hardware acceleration is not fully supported so far.Most of the graphics primitives are supported in hardware-accelerated rendering, so it's possible to run Swing applications on top of it. 

java -Dawt.toolkit.name=WLToolkit -Dsun.java2d.vulkan=True J2Ddemo.jar

...

Here is an updated build instruction for building jdk21.0.1jdk25-wayland branch (on ubunu 24.04). You need to have at least JDK24 for bootstrapping:

$ sudo wget -qO- https://packages.lunarg.com/lunarg-signing-key-pub.asc | tee /etc/apt/trusted.gpg.d/lunarg.asc

...

$ sudo apt-get -y install openjdk-21-jdk file zip unzip autoconf make build-essential libx11-dev libxext-dev libxrender-dev \

...