Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8191814

Marlin rasterizer spends time computing geometry for stroked segments that do not intersect the clip

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 10
    • 9, 10
    • client-libs
    • 2d
    • b36

        Improve the Marlin renderer to better handle the clip region in:
        - Stroker: g2d.draw(shape)
        - Filler: g2d.fill(shape)

        Marlin 0.8.2 (github) has an efficient path segment filter to ignore useless segments outside the clip that improves Renderer performance (less edges to process) as it only skips edges in the TOP/BOTTOM sides not on LEFT/RIGHT sides.

        In future the Dasher will be improved to handle the clip too (another bug) in order to avoid emitting dashes outside the clip but dash attributes (phase) must be preserved

              lbourges Laurent Bourgès
              lbourges Laurent Bourgès
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: