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

Fix for RT-5788 disabled an optimization for antialiased rectangles

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • fx1.3
    • javafx

      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.

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

              Created:
              Updated:
              Imported: