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

Workaround for Rounded Rectangle rendering bug on ES2 hurts performance

    Details

      Description

      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.

        Attachments

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

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                jasper Jasper Potts
              • Votes:
                2 Vote for this issue
                Watchers:
                10 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Imported: