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

Fix for RT-5788 disabled an optimization for antialiased rectangles

    Details

    • Type: Enhancement
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: fx1.3
    • Fix Version/s: tbd
    • Component/s: javafx

      Description

      The ShaderRectRep class implements an optimization to amortize the calculation of the parallelogram bounds for Antialiased rectangles.

      Unfortunately, the transform validation in that class caused the bug reported as RT-5788 since it tried to use the transform's hash code to detect changes in the transforms. Unfortunately a hashcode is insufficient to detect transform changes since two non-equal transforms can have the same hash code. As a result that class had to be disabled in the Prism graphics stack.

      Thus, the fix for 5788 has left us with a missing opportunity for a performance fix. The performance gains of caching the parallelogram vertices needs to be reimplemented in a way that does not cause the bug in RT-5788.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                flar Jim Graham
              • Votes:
                1 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Imported: