[OpenJDK 2D-Dev] [9] Review Request: 7102282 TEST_BUG: sun/java2d/OpenGL/GradientPaints.java should be modified

Sergey Bylokhov Sergey.Bylokhov at oracle.com
Tue Apr 12 22:37:05 UTC 2016

Please review the fix for jdk9.

This test uncover a few issues:
Test bug:
  - Fail on HiDPI system, because the test tries to check the rendering 
to the BufferedImage and VolaileImage using some threshold. Fixed by the 
"-Dsun.java2d.uiScale=1" option.

jdk bug:
  - timeout error (in the bug the value 800 is suggested). It seems a 
duplicate of JDK-8041129 [1]. Anyway 800 is to big, and should be 
considered as a jdk bug(if will be reproduced on the latest jdk9).
  - Incorrect rendering on some systems and video cards (especially on 
linux), is covered by JDK-7124403 [2]

Since OGL performance should be fixed already, I updated the test only 
for the retina case. After the fix I think the test is ok, and other 
possible failures should be considered as a jdk bugs.

I also create a new bug JDK-8154103 [3] to check the performance of 
XRender pipeline, it is slower than x11 and ogl.

[1] https://bugs.openjdk.java.net/browse/JDK-8041129
[2] https://bugs.openjdk.java.net/browse/JDK-7124403
[2] https://bugs.openjdk.java.net/browse/JDK-8154103

Bug: https://bugs.openjdk.java.net/browse/JDK-7102282
Webrev can be found at: http://cr.openjdk.java.net/~serb/7102282/webrev.00

Best regards, Sergey.

More information about the 2d-dev mailing list