Files
ladybird/Tests/LibWeb/Text/expected/display_list/nested-branches.txt
Aliaksandr Kalenik 44d90af3d6 LibGfx+LibWeb: Cache SkTextBlob in GlyphRun
Previously, SkTextBlob was built on every paint in
DisplayListPlayerSkia::draw_glyph_run(), which meant:
- Repeated work when the same display list is painted multiple times
- Glyph arrays were allocated and populated on each paint

Now the blob is built once during display list recording and cached in
GlyphRun.
2026-01-24 15:22:03 +01:00

26 lines
1.6 KiB
Plaintext

AccumulatedVisualContext Tree:
[1] scroll_frame_id=0 (PaintableWithLines(BlockContainer<PRE>#out))
[2] clip=[10,10 320x270] (PaintableWithLines(BlockContainer<DIV>.level2))
[3] clip=[21,21 143x248] (PaintableWithLines(BlockContainer(anonymous)))
[4] transform=[0.9986295,-0.05233596,0.05233596,0.9986295,0,0] origin=(92.5,46) (PaintableWithLines(BlockContainer<DIV>.level3.t1))
[5] transform=[0.9986295,0.05233596,-0.05233596,0.9986295,0,0] origin=(92.5,91) (PaintableWithLines(BlockContainer<DIV>.level3.t2))
[6] clip=[176,21 143x248] (PaintableWithLines(BlockContainer(anonymous)))
[7] transform=[0.95,0,0,0.95,0,0] origin=(247.5,46) (PaintableWithLines(BlockContainer<DIV>.level3.t3))
[8] transform=[1.05,0,0,1.05,0,0] origin=(247.5,91) (PaintableWithLines(BlockContainer<DIV>.level3.t4))
DisplayList:
SaveLayer@0
FillPath@1 path_bounding_rect=[8,8 324x274]
FillPath@2 path_bounding_rect=[20,20 145x250]
FillPath@2 path_bounding_rect=[175,20 145x250]
FillRect@4 rect=[26,26 133x40] color=rgb(255, 136, 136)
DrawGlyphRun@4 rect=[26,26 20x18] translation=[26,39.796875] color=rgb(0, 0, 0)
FillRect@5 rect=[26,71 133x40] color=rgb(136, 255, 136)
DrawGlyphRun@5 rect=[26,71 22x18] translation=[26,84.796875] color=rgb(0, 0, 0)
FillRect@7 rect=[181,26 133x40] color=rgb(136, 136, 255)
DrawGlyphRun@7 rect=[181,26 22x18] translation=[181,39.796875] color=rgb(0, 0, 0)
FillRect@8 rect=[181,71 133x40] color=rgb(255, 255, 136)
DrawGlyphRun@8 rect=[181,71 25x18] translation=[181,84.796875] color=rgb(0, 0, 0)
Restore@0