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

Cursor / ImageCursor cache refactoring and fixes

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • None
    • fx2.0
    • javafx
    • None

      Cursor and mainly ImageCursor cache their corresponding platform cursors. This is mainly important for image cursors created from animated images, to prevent creation of platform cursor instance for every frame of image animation (even for repeated frames). These animated image cursors (one scengraph ImageCursor -> multiple platform cursors) used to work with Swing toolkit. As described in RT-13755 this platform cursor caching has become ambiguous with RT-12541. The RT-13755 suggest removal of this caching, but it considers only standard Cursors. While it might do for them, cache removal will be bad for ImageCursors and animated ImageCursors. Instead of that, the cashing should be extended to allow platform cursors for different platforms to be cached simultaneously. With this, the support for animated ImageCursors should be also re-enabled.

            lnerad Ľubomír Nerád (Inactive)
            lnerad Ľubomír Nerád (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: