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.
public static final byte SAVE = 1 sourcepublic static final byte RESTORE = 2 sourcepublic static final byte TRANSLATE = 4 sourcepublic static final byte SCALE = 5 sourcepublic static final byte ROTATE = 6 sourcepublic static final byte CONCAT = 7 sourcepublic static final byte SET_MATRIX = 8 sourcepublic static final byte CLIP_RECT = 10 sourcepublic static final byte CLIP_PATH = 11 sourcepublic static final byte DRAW_COLOR = 12 sourcepublic static final byte DRAW_PAINT = 13 sourcepublic static final byte DRAW_RECT = 14 sourcepublic static final byte DRAW_RRECT = 15 sourcepublic static final byte DRAW_OVAL = 16 sourcepublic static final byte DRAW_CIRCLE = 17 sourcepublic static final byte DRAW_ARC = 18 sourcepublic static final byte DRAW_LINES = 19 sourcepublic static final byte DRAW_POINTS = 20 sourcepublic static final byte DRAW_PATH = 21 sourcepublic static final byte DRAW_GLYPHS = 22 sourcepublic static final byte DRAW_BITMAP = 23 sourcepublic static final byte SAVE_LAYER = 25 sourcepublic static final byte DRAW_DRRECT = 26 sourcepublic static final byte NODE_BEGIN = 30 sourcepublic static final byte NODE_END = 31 sourcepublic Writer writer() sourcepublic boolean isEmpty() sourcepublic void clear() sourcepublic void addChild(RenderNode node) sourcepublic void addChildList(DisplayList list) sourceAnother list's operations here, as one child: a Picture drawn.
public void addBitmap(Bitmap b) sourcepublic void finish() sourceThe operations after the last child, made a segment.
public int segmentCount() sourcepublic byte[] segment(int i) sourcepublic int childCount() sourcepublic RenderNode child(int i) sourcepublic java.util.List<Bitmap> bitmaps() sourceMade 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.