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

SurfaceData should not initialize Ductus until needed

XMLWordPrintable

    • 2d
    • b09
    • generic
    • generic
    • Verified

        SurfaceData initializes number of pipes and loops but some of them might be not used at all.
        This can be done more lazily.

        In particular, Ductus library is initialized (triggered by initialization of AA loops) but
        many simple applets are not using AA loops.
        Moreover, SwingSet on windows only needs loads Ductus library for 2 tabs
        (JColorChooser demo (animation of thick 2D shape) and progressbar demo (LoopPipe.getStrokeSpans()
        needs stroker from Ductus)).
        I.e. for many java applications initialization of Ductus at startup seems to be unneeded.

              igor Igor Nekrestyanov (Inactive)
              igor Igor Nekrestyanov (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: