[OpenJDK 2D-Dev] RFR: 8196086: java/awt/image/DrawImage/IncorrectSourceOffset.java fails

Aleksey Shipilev shade at openjdk.java.net
Mon Nov 23 09:50:58 UTC 2020

On Sun, 22 Nov 2020 07:36:12 GMT, Sergey Bylokhov <serb at openjdk.org> wrote:

> These tests draw some specific pattern to the VolatileImage and to the BufferedImage, and then compare pixels.
> The test uses the getSnapshot() method to get the pixels from VolatileImage, and this method produces some interpolation "artifacts" if the fractional scale is used in the system(like 125%).
> The solution is to use some predefined scale to pass the tests, to reproduce initial bug scale=1 is enough.
> One test fails because of the bug in the XRender pipeline.

I have a drive-by question: why do some tests run with `-Dsun.java2d.uiScale=3`, and some are not?


PR: https://git.openjdk.java.net/jdk/pull/1372

More information about the 2d-dev mailing list