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

CSS could reuse Images for repeating styles

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: P3 P3
    • None
    • None
    • javafx

      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"
        

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

              Created:
              Updated:
              Resolved:
              Imported: