Skip to main content

Module compositor

Module compositor 

Source
Expand description

CSS 2.1 Appendix E 7-Layer Stacking Context Compositor & Display List Generator.

Structs§

Compositor
Compiles a LayoutNode tree into a DisplayList following CSS 2.1 Appendix E.
DamageTracker
Tracks damaged (dirty) screen regions across frames to minimize redraw overhead.
DisplayList
A serialized sequence of render instructions for a single frame.
ScrollbarOverlay
Precomputed scrollbar thumb overlay bound to a specific scroll container LayoutNode so Compositor emits it inline inside that container’s stacking context and clip bounds.

Enums§

DrawCommand
Low-level drawing primitives emitted to GPU command buffers.

Functions§

draw_text_paint_size
Computes a conservative (width, height) bounding size for a DrawCommand::DrawText command, accounting for explicit newlines and word-wrapping within bounds_width so 64x64 dirty-tile hashing, tile culling, and clip culling never underestimate multiline text.
effective_draw_text_line_height
Resolves a DrawText line_height field (multiplier if <= 4.0, pixel distance if > 4.0).
layout_draw_text_lines
Breaks and aligns DrawCommand::DrawText slices to fit bounds_width using char_advance, returning (x_offset, line_slice) entries and the starting y_offset for vertical centering.