[OpenJDK 2D-Dev] RFR: 7018932 : Drawing very large coordinates with a dashed Stroke can cause Java to hang [v5]
Laurent Bourgès
lbourges at openjdk.java.net
Sun Jan 10 21:04:12 UTC 2021
> 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 one additional commit since the last revision:
Removed comments in LoopPipe.java
-------------
Changes:
- all: https://git.openjdk.java.net/jdk/pull/2013/files
- new: https://git.openjdk.java.net/jdk/pull/2013/files/3ae23d94..02cc2cb1
Webrevs:
- full: https://webrevs.openjdk.java.net/?repo=jdk&pr=2013&range=04
- incr: https://webrevs.openjdk.java.net/?repo=jdk&pr=2013&range=03-04
Stats: 7 lines in 1 file changed: 0 ins; 7 del; 0 mod
Patch: https://git.openjdk.java.net/jdk/pull/2013.diff
Fetch: git fetch https://git.openjdk.java.net/jdk pull/2013/head:pull/2013
PR: https://git.openjdk.java.net/jdk/pull/2013
More information about the 2d-dev
mailing list