Class GlyphAtlasManager

All Implemented Interfaces:
AutoCloseable

public class GlyphAtlasManager extends DrawAtlas.AtlasGenerationCounter implements AutoCloseable
Manages all baked glyphs and their texture atlases for raster text rendering.
  • Constructor Details

  • Method Details

    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
    • initAtlas

      public boolean initAtlas(int maskFormat)
      Initialize atlas if not. This function *must* be called first, before other functions which use the atlas.
    • getCurrentTexture

      @RawPtr public @RawPtr ImageViewProxy getCurrentTexture(int maskFormat)
    • hasGlyph

      public boolean hasGlyph(int maskFormat, @Nonnull BakedGlyph glyph)
    • addGlyphToAtlas

      public int addGlyphToAtlas(@Nonnull Glyph glyph, @Nonnull BakedGlyph bakedGlyph)
    • addGlyphAndSetLastUseToken

      public void addGlyphAndSetLastUseToken(@Nonnull DrawAtlas.PlotBulkUseUpdater updater, @Nonnull BakedGlyph glyph, int maskFormat, long token)
    • getAtlasGeneration

      public long getAtlasGeneration(int maskFormat)
    • setLastUseTokenBulk

      public void setLastUseTokenBulk(int maskFormat, DrawAtlas.PlotBulkUseUpdater updater, long token)
    • recordUploads

      public boolean recordUploads(SurfaceDrawContext sdc)
    • evictAtlases

      public void evictAtlases()
    • compact

      public void compact()
    • purge

      public void purge()