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

Workaround for Rounded Rectangle rendering bug on ES2 hurts performance

XMLWordPrintable

      A rounded rectangle is rendered differently wrong in hardware pipeline on Mac. It is correct in software pipeline. It is also correct when rendered with a region that uses a Path to render. Both the corners are rendered wrong but also the color of the outside edge pixel is different. See the two attached images and zoom in on center example.

      I have also attached the test case. We expect the radius to look the same on the center and left Regions. Also the colors of the 3 backgrounds should be the same on all 3 Regions. This is not true on current hardware pipeline on ES2 Mac.

        1. ES2 no region cache.png
          7 kB
          Jasper Potts
        2. hardware-vs-software.png
          89 kB
          Jasper Potts
        3. Modena-HW-vs-SW.png
          4 kB
          Jasper Potts
        4. NGRegion-Temp-Workaround.patch
          2 kB
          Jasper Potts
        5. RenderingArtifactsOnButton.java
          1 kB
          Jasper Potts
        6. styles.css
          0.5 kB
          Jasper Potts
        7. SW no region cache.png
          7 kB
          Jasper Potts

            Unassigned Unassigned
            jasper Jasper Potts (Inactive)
            Votes:
            2 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated:
              Imported: