DisplayList

Class of snx.android.hwui · DisplayList.java

public final class DisplayList

Drawing operations as bytes, the HLE of libhwui's display lists. A node's list is segments of operations with the child nodes it draws between them, so a frame flattens the tree without parsing an operation. The format is little-endian whatever the host is, as src/android/hwui/render.c reads it. docs/platforms/android-apps/hwui.md lists the operations.

Nested types

Fields

public static final byte SAVE = 1 source
public static final byte RESTORE = 2 source
public static final byte TRANSLATE = 4 source
public static final byte SCALE = 5 source
public static final byte ROTATE = 6 source
public static final byte CONCAT = 7 source
public static final byte SET_MATRIX = 8 source
public static final byte CLIP_RECT = 10 source
public static final byte CLIP_PATH = 11 source
public static final byte DRAW_COLOR = 12 source
public static final byte DRAW_PAINT = 13 source
public static final byte DRAW_RECT = 14 source
public static final byte DRAW_RRECT = 15 source
public static final byte DRAW_OVAL = 16 source
public static final byte DRAW_CIRCLE = 17 source
public static final byte DRAW_ARC = 18 source
public static final byte DRAW_LINES = 19 source
public static final byte DRAW_POINTS = 20 source
public static final byte DRAW_PATH = 21 source
public static final byte DRAW_GLYPHS = 22 source
public static final byte DRAW_BITMAP = 23 source
public static final byte SAVE_LAYER = 25 source
public static final byte DRAW_DRRECT = 26 source
public static final byte NODE_BEGIN = 30 source
public static final byte NODE_END = 31 source

Methods

public Writer writer() source
public boolean isEmpty() source
public void clear() source
public void addChild(RenderNode node) source
public void addChildList(DisplayList list) source

Another list's operations here, as one child: a Picture drawn.

public void addBitmap(Bitmap b) source
public void finish() source

The operations after the last child, made a segment.

public int segmentCount() source
public byte[] segment(int i) source
public int childCount() source
public RenderNode child(int i) source
public java.util.List<Bitmap> bitmaps() source

Made from ScarletNX's Sail at 166ad3910f80. The framework is ScarletNX's (GPL-3.0-or-later); the parts that follow the Android Open Source Project's sources (Apache-2.0) say so in their files.