Integrated: 8092439: [Monocle] Refactor monocle SPI to allow support for multiple screens
Johan Vos
jvos at openjdk.java.net
Thu Mar 18 07:34:49 UTC 2021
On Tue, 16 Mar 2021 14:24:19 GMT, Johan Vos <jvos at openjdk.org> wrote:
> Fix for JDK-8092439 and JDK-8092064
> Monocle currently hard-codes a single Screen, and the `staticScreen_getScreens()` method will never return more than 1 Screen.
>
> This PR introduces the possibility to deal with multiple screens, which is not uncommon on embedded systems. By default, the `staticScreen_getScreens()` method will still return a single screen, but the sub-platforms can now return multiple screens.
>
> The EGL subplatform will now query the low-level drivers, and if they detect multiple displays, multiple `Screen` instances will be configured.
> The low-level native implementation for getting the number of physical screens and there characteristics is deferred to the real low-level libraries (for example, an X11 based approach can do it in a different way then a DRM based approach).
This pull request has now been integrated.
Changeset: a8a80b8c
Author: Johan Vos <jvos at openjdk.org>
URL: https://git.openjdk.java.net/jfx/commit/a8a80b8c
Stats: 298 lines in 7 files changed: 275 ins; 0 del; 23 mod
8092439: [Monocle] Refactor monocle SPI to allow support for multiple screens
Reviewed-by: kcr
-------------
PR: https://git.openjdk.java.net/jfx/pull/426
More information about the openjfx-dev
mailing list