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

CSS could reuse Images for repeating styles

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P3
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: javafx
    • Labels:

      Description

      Ensemble3 specifies an image for its preview element's border:

      .sample-medium-preview {
          -fx-border-image-source: url("images/tile-border.png");
          ...
      }

      When the main page is scrolled, corresponding Image objects are instantiated hundreds of times, which impacts scrolling performance as well as texture memory on GPU (especially important on embedded).
      Relevant code is in javafx.scene.layout.BorderConverter.convert(java.util.Map), in "BorderConverter.java"
        

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              dgrieve David Grieve
              Reporter:
              omazurov Oleg Mazurov (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported: