[OpenJDK 2D-Dev] [9] Review Request: 8167310 The graphics clip is incorrectly rounded for some fractional scales

Jim Graham james.graham at oracle.com
Mon Oct 10 19:29:49 UTC 2016


That does sound like a problem.  Does it do the same thing with new Path2D(Rectangle)?  The Area class does some 
processing on the path and it would be nice to eliminate that as a potential source of this problem.  I don't have a 
buildable JDK9 repo right now that I can fire off some quick tests on so I'll have to look at this later...

			...jim

On 10/10/16 12:04 PM, Sergey Bylokhov wrote:
> On 10.10.16 21:55, Sergey Bylokhov wrote:
>>> Will give us a pass on the test as long as we made the same mistake for
>>> both the rect clip and the shape clip.  I think you want "(rgb !=
>>> goldRGB) || (rgb != GREEN && rgb != RED)"...?
>>
>> Correct, I will update the test.
>
> surprisingly but it is produce the different results.... And I think that the clip which is set via Shape is shifted,
> because the first and last fillRects cover only the half of expected area. But in case of clip=rectangle all fillRects
> produce the same areas.
>
>



More information about the 2d-dev mailing list