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

Decide behavior of getRenderRoot() when dirty region rect is empty.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: P5
    • Resolution: Unresolved
    • Affects Version/s: 8, 9, openjfx11, openjfx16
    • Fix Version/s: tbd
    • Component/s: javafx
    • Labels:

      Description

      RenderRootTest has tests for verifying behavior of getRenderRoot() method when dirty region is an empty rect i.e. (0, 0, -1, -1)

      tests: emptyDirtyRegion1, emptyDirtyRegion2, invalidDirtyRegionOutsideOpaqueRegion

      See RectBounds.makeEmpty() and RectBounds.isEmpty() for definition of an empty rect.

      Current behavior is that when an empty dirty region rect is passed to root.getRenderRoot(), it returns the root itself in NodePath, which means that entire scenegraph tree of the root shall be rendered.

      Other behavior could be that no rendering should happen when the dirty rect is empty.
      We need to choose a behavior and make related changes.

      As of now we think current behavior is more correct and changing it is more likely to cause regressions. If we go with this approach then it will only be test bug.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              arapte Ambarish Rapte
              Reporter:
              arapte Ambarish Rapte
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated: