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