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

Region, Circle, Ellipse, and ImageView should support occlusion culling for opaque paints

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 8
    • Fix Version/s: 8
    • Component/s: javafx
    • Labels:
      None

      Description

      Rectangle has good support for participating in occlusion culling for opaque paints by virtue of its implementation of computeOpaqueRegion. Region has some support for it, but fails for several use cases among which are opaque paints. Circle and Ellipse have no support but would be as cheap to support as Rectangles, so they should support being an occlusion root as well.

      NGImageView could also be an occlusion root fairly easily since prism Images can tell us what their pixel format is, making it relatively straightforward to determine cheaply whether the image is an occlusion culling capable dirty root.

        Attachments

        1. Bug.java
          12 kB
        2. test-opaque.jpg
          test-opaque.jpg
          1 kB
        3. test-opaque.png
          test-opaque.png
          0.9 kB
        4. test-transparent.png
          test-transparent.png
          1.0 kB

          Activity

            People

            • Assignee:
              rbair Richard Bair
              Reporter:
              rbair Richard Bair
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported: