[OpenJDK 2D-Dev] RFR: JDK-8218682 + JDK-8198411: [TEST_BUG] DashOffset fails in mach5 + Two java2d tests are unstable in mach5

Alexey Ivanov alexey.ivanov at oracle.com
Mon Feb 11 18:41:06 UTC 2019


On 11/02/2019 18:27, Sergey Bylokhov wrote:
> On 11/02/2019 09:28, Alexey Ivanov wrote:
>> No, it does not look like it's possible directly.
>> In the case of DashOffset, VolatileImage contains #F8F8F8 instead of 
>> #FFFFFF, #0000CC instead of #0000FF, #00CC00 instead of #00FF00. In 
>> other configurations, the colours could be different. BufferedImage 
>> contains the expected colours.
>
> But I thought the colors should be the same if the BI was created 
> using IndexColorModel(or any other used by VI) instead of default 
> color model?

Now I got your idea. It should work.
Actually, it can be used to get the values of the “dynamic” colours to 
validate VolatileImage, thus avoiding comparing the colour of every 
single pixel.

Let me experiment with this.
Would it be acceptable if I submit a new CR to improve these tests?

-- 
Regards,
Alexey


More information about the 2d-dev mailing list