[OpenJDK 2D-Dev] RFR: 7018932 : Drawing very large coordinates with a dashed Stroke can cause Java to hang [v2]

Laurent Bourgès lbourges at openjdk.java.net
Sat Jan 9 09:50:19 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.

Laurent Bourgès has updated the pull request incrementally with one additional commit since the last revision:

  fixed RenderingEngine.Tracer impl + added DrawingTest7018932 test

-------------

Changes:
  - all: https://git.openjdk.java.net/jdk/pull/2013/files
  - new: https://git.openjdk.java.net/jdk/pull/2013/files/4d04b85d..5785f866

Webrevs:
 - full: https://webrevs.openjdk.java.net/?repo=jdk&pr=2013&range=01
 - incr: https://webrevs.openjdk.java.net/?repo=jdk&pr=2013&range=00-01

  Stats: 134 lines in 2 files changed: 134 ins; 0 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