RFR: 8275689: [TESTBUG] Use color tolerance only for XRender in BlitRotateClippedArea test [v2]

Jayathirth D V jdv at openjdk.java.net
Wed Oct 27 07:11:35 UTC 2021


On Tue, 26 Oct 2021 19:13:42 GMT, Sergey Bylokhov <serb at openjdk.org> wrote:

>> Jayathirth D V has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   Use class name to verify Graphics configuration
>
> test/jdk/java/awt/image/DrawImage/BlitRotateClippedArea.java line 109:
> 
>> 107:     private static void validate(BufferedImage gold, BufferedImage img)
>> 108:             throws IOException {
>> 109:         if (!Platform.isLinux()) {
> 
> I think it will pass even on Linux if the X11 or OGL pipeline is used. So probably some check of the graphics config class name(XRGraphicsConfig?) will work?

I think in current supported platforms by default it should go XRender on linux unless we specify it to use other pipelines by -Dsun.java2d.XXX=true. But to be safe it is better to confirm with class name.

I have update the code to use class name and verified that we are getting appropriate class names in all platforms.

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

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



More information about the client-libs-dev mailing list