[OpenJDK 2D-Dev] RFR: 7018932 : Drawing very large coordinates with a dashed Stroke can cause Java to hang
Laurent Bourgès
lbourges at openjdk.java.net
Sat Jan 9 09:13:03 UTC 2021
This is my first fix proposal on this bug:
- added new method strokeTo(... Region clip ...) in the abstract RenderingEngine class
- fix all RenderingEngine implementations in java.desktop module
- MarlinRenderingEngine now use 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 will write a new test class in follow-up commits to validate the bug fix.
-------------
Commit messages:
- fixed whitespaces
- jdk-7018932.0
Changes: https://git.openjdk.java.net/jdk/pull/2013/files
Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=2013&range=00
Issue: https://bugs.openjdk.java.net/browse/JDK-7018932
Stats: 225 lines in 5 files changed: 219 ins; 1 del; 5 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