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

View.uploadPixels could take a source rectangle to upload only a portion of the pixels

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P3 P3
    • tbd
    • 8
    • javafx

      There are two use cases for having a variant of View.uploadPixels that copies only a portion of the pixels in a Pixels buffer: The first one is necessary. The second would be a nice bonus.

      1) In the case of dirtyopts we know that we only need to update the union of all of the dirty regions. Currently we are ignoring this clipping information, but there is a JIRA filed to optimize this case, RT-20356. Implementing that JIRA for the software pipeline or transparent windows case depends on this issue.

      2) For the J2D and SW pipelines, we allocate a buffer of pixels to upload to HW whenever the window changes size. As a potential optimization we could avoid this allocation if the window was resized smaller, and only allocate a new buffer when it was resized larger.

            Unassigned Unassigned
            kcr Kevin Rushforth
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Imported: