[OpenJDK 2D-Dev] RFR: 7018932 : Drawing very large coordinates with a dashed Stroke can cause Java to hang [v7]
Sergey Bylokhov
serb at openjdk.java.net
Tue Jan 12 18:59:56 UTC 2021
On Mon, 11 Jan 2021 09:00:27 GMT, Laurent Bourgès <lbourges at openjdk.org> wrote:
>> This is my fix proposal to this bug:
>> - added new method strokeTo(... Region clip ...) in the abstract RenderingEngine class
>> - fixed all RenderingEngine implementations in java.desktop module
>> - MarlinRenderingEngine now uses the clip region to roughly & quickly clip the given shape in strokeTo(clip)
>> - LoopPipe.getStrokeSpans() uses the new strokeTo(clip) method to get good performance with huge dashed shapes.
>>
>> I wrote a new test class to validate the bug fix.
>
> Laurent Bourgès has updated the pull request incrementally with two additional commits since the last revision:
>
> - fixed copyright year
> - removed invalid jtreg test
Internal testing is fine, The fix looks good. Thank you for your contribution!
-------------
Marked as reviewed by serb (Reviewer).
PR: https://git.openjdk.java.net/jdk/pull/2013
More information about the 2d-dev
mailing list