> The current implementation of screen capture with ScreenCast has some > shortcomings in handling ui scale. > > This changeset includes: > > * sun.java2d.uiScale value is now taken into account > * screen data streams from ScreenCast are provided in native screen > resolution regardless of the scale set in the system. > Now we take that into account and resize the image accordingly. > * We are now trying all available `restore_token`, since it is is tied to the > display, but not to its resolution. > * Skips the gtk2 part of the ScreenCaptureGtkTest as it is not supported. > > Following tests are no longer failing on Wayland: > java/awt/Robot/HiDPIScreenCapture/HiDPIRobotScreenCaptureTest.java > java/awt/Robot/HiDPIScreenCapture/ScreenCaptureGtkTest.java > java/awt/Robot/HiDPIScreenCapture/ScreenCaptureTest.java > > Other testing also looks good, including manual testing with various scales > set in the system(including fractional scaling).
Alexander Zvegintsev has updated the pull request incrementally with one additional commit since the last revision: fix copyright year ------------- Changes: - all: https://git.openjdk.org/jdk/pull/16027/files - new: https://git.openjdk.org/jdk/pull/16027/files/da786357..39662162 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=16027&range=01 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=16027&range=00-01 Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod Patch: https://git.openjdk.org/jdk/pull/16027.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/16027/head:pull/16027 PR: https://git.openjdk.org/jdk/pull/16027