[OpenJDK 2D-Dev] [10] Review Request JDK - 8164811 : [hidpi]Tests fail with OpenGL Rendering

Pankaj Bansal pankaj.b.bansal at oracle.com
Tue Oct 31 11:59:21 UTC 2017

Hi All,


Please review the fix for JDK 10.









The tests given in the bug were failing when run with OpenGL and GDI.  This bug is related to https://bugs.openjdk.java.net/browse/JDK-8189257 which states that that HIDPI does not work with swing components when Translucent window is used. Because of which all the tests in the bug were failing.



The TranslucentWindowPainter class was creating BufferedImage for OpenGL (when forceOpt is false) and GDI pipeline, but it is not considering the device HiDPI scale. There is no way to create a scaled BufferedImage because of which the scale value in BufImgSurfaceData is always 1. Made changes to store graphics config in Buffered image, so that the BufImgSurfaceManager can create BufImgSurfaceData with scale set properly.


This fix also fixes  https://bugs.openjdk.java.net/browse/JDK-8189257



Pankaj Bansal

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/2d-dev/attachments/20171031/a4faecb5/attachment.html>

More information about the 2d-dev mailing list