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

Aleksey Shipilev shade at openjdk.java.net
Thu Nov 26 10:19:55 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.

Thanks for the explanation. Looks fine to me then.

-------------

Marked as reviewed by shade (Reviewer).

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


More information about the 2d-dev mailing list