JDK-8090715 : BaseContext: optimize getGradientTexture
  • Type: Enhancement
  • Component: javafx
  • Sub-Component: graphics
  • Priority: P5
  • Status: Open
  • Resolution: Unresolved
  • Submitted: 2012-12-28
  • Updated: 2021-03-24
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
tbdUnresolved
Related Reports
Relates :  
Description
// TODO: need to dispose these when the context is disposed...
    private final Map<FontStrike, GlyphCache>
        greyGlyphCaches = new HashMap<FontStrike, GlyphCache>();
    private final Map<FontStrike, GlyphCache>
        lcdGlyphCaches = new HashMap<FontStrike, GlyphCache>();
    GlyphCache[] recentCaches = new GlyphCache[8];

getGradientTexture():
could save some work if we converted the *GradientContext classes to produce ByteRgbaPre data instead of IntArgbPre data...
Comments
As noted above, this JBS issue describes two separate issues: * The first is a TODO that says we "need to dispose...when the context is disposed". This was fixed as part of JDK-8239589. * The second is a possible performance enhancement noted in a TODO comment that we could save some work if we converted the *GradientContext classes to produce ByteRgbaPre data instead of IntArgbPre data. This JBS issue will track the latter of these.
24-03-2021

The first part of this issue, disposing the cache when context is disposed, will be addressed by the fix for JDK-8239589. Once that bug fix is integrated, I will update this RFE to track only the second issue, optimize getGradientTexture.
17-03-2021