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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P5 P5
    • tbd
    • jfx11, 8, 9, jfx16
    • javafx

      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.

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

              Created:
              Updated: