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

Sergey Bylokhov serb at openjdk.java.net
Sun Nov 22 08:15:31 UTC 2020

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.


Commit messages:
 - Initial fix

Changes: https://git.openjdk.java.net/jdk/pull/1372/files
 Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=1372&range=00
  Issue: https://bugs.openjdk.java.net/browse/JDK-8196086
  Stats: 18 lines in 5 files changed: 11 ins; 3 del; 4 mod
  Patch: https://git.openjdk.java.net/jdk/pull/1372.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/1372/head:pull/1372

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

More information about the 2d-dev mailing list