Class SubRunContainer

java.lang.Object
icyllis.arc3d.granite.SubRunContainer

public class SubRunContainer extends Object
A SubRun represents a method to draw a subregion of a GlyphRun, where GlyphRun represents the shaped text (positioned glyphs) and a strike. SubRun is the basic unit that is ready for GPU task generation, except that it does not contain the current transformation matrix.
  • Constructor Details

    • SubRunContainer

      public SubRunContainer(Matrixc initialPositionMatrix)
  • Method Details

    • isDirect

      @Contract(pure=true) public static boolean isDirect(float approximateDeviceTextSize, Paint paint, Matrixc matrix)
    • isDirect

      @Contract(pure=true) public static boolean isDirect(float approximateDeviceTextSize)
    • make

      public static @NonNull SubRunContainer make(@NonNull GlyphRunList glyphRunList, @NonNull Matrixc positionMatrix, @NonNull Paint runPaint, @NonNull StrikeCache strikeCache)
    • draw

      public void draw(Canvas canvas, float originX, float originY, Paint paint, GraniteDevice device)
    • initialPosition

      public Matrixc initialPosition()
    • isEmpty

      public boolean isEmpty()
    • canReuse

      @Contract(pure=true) public boolean canReuse(@NonNull Paint paint, @NonNull Matrixc positionMatrix, float glyphRunListX, float glyphRunListY)
    • getMemorySize

      public long getMemorySize()