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

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 9, 10
    • Fix Version/s: 10
    • Component/s: client-libs
    • Labels:
    • Subcomponent:
      2d
    • Resolved In Build:
      b36

      Backports

        Description

        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

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                lbourges Laurent Bourgès
                Reporter:
                lbourges Laurent Bourgès
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: