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

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

XMLWordPrintable

    • 2d
    • x86_64
    • os_x

      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.

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

              Created:
              Updated: