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

Drawing polyline in XOR mdoe can be optimised (only with uiScale=1.0)

    Details

    • Subcomponent:
      2d
    • CPU:
      x86_64
    • OS:
      os_x

      Description

      This code path is taken only for XOR mode on external monitor (or with uiScale=1.0 on retina monitor)

      I have fixed the visual traces with poly-line drawn in XOR mode as a fix of JDK-8251167. That fix is not optimal as it draws N line segments separately.
      This can be optimized as follows -
      1. Apply magic numbers for the pixel alignment to the points of the poly-line and store the new values
      2. Use these new values to draw poly-line preferably using line-strip or line-list.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                aghaisas Ajit Ghaisas
                Reporter:
                aghaisas Ajit Ghaisas
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: