The Android Back-End For Wayland's Weston

Written by Michael Larabel in Wayland on 31 May 2012 at 07:19 AM EDT. 8 Comments
WAYLAND
As a sign the support may soon be merged, the patches needed for having an Android back-end for Wayland and the reference Weston compositor were published on the mailing list.

Just last week I wrote about Wayland's Weston now running on Android after weeks of work by Pekka Paalanen, an employee of Collabora. Yesterday an email hit the Wayland development list with the title of "Add Android backend" as part of a set of five patches from Pekka.

Below is the patch description for the Weston Android back-end.
The Android backend provides basic EGL/GLES2 graphics, where everything is always composited. Overlays are not used. Input is stubbed, therefore there is no input yet.

This adds the first C++ source file into Weston compositor. The Android gralloc and fb HAL glue code to the Android EGL library is in C++, and there is no way to access it from plain C. We have a simple wrapper to the required C++ class API. Android forces the C++ file name extension to .cpp.

The android backend is compiled by default. However, all Android specific calls are protected with #ifdef ANDROID, so it will build also without Android headers. The binary produced without the Android build system is useless, but allows build-testing generic Weston changes. Therefore the android backend is not installed.
Related News
About The Author
Michael Larabel

Michael Larabel is the principal author of Phoronix.com and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated benchmarking software. He can be followed via Twitter, LinkedIn, or contacted via MichaelLarabel.com.

Popular News This Week