From 8c987819b7654abbcdff06f3235aa7feaeb85d5c Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Sat, 21 Feb 2026 17:12:37 -0300 Subject: [PATCH] Revert "hb-raster: process single-row edges without active-edge list" This reverts commit 541d7dab7bbf1a89103edda43ca58617408eb8bb. --- src/hb-raster-draw.cc | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/src/hb-raster-draw.cc b/src/hb-raster-draw.cc index 8e3dd995d..c752717db 100644 --- a/src/hb-raster-draw.cc +++ b/src/hb-raster-draw.cc @@ -925,19 +925,12 @@ hb_raster_draw_render (hb_raster_draw_t *draw) int32_t y_top = (ext.y_origin + (int) row) << 6; int32_t py = y_top >> 6; - /* Process new edges from this row's bucket. Only add to the - active list if they span beyond this row. */ - unsigned x_min = ext.width, x_max = 0; + /* Add new edges from this row's bucket. */ for (unsigned idx : draw->edge_buckets.arrayZ[row]) - { - const auto &e = draw->edges.arrayZ[idx]; - edge_sweep_row (draw->row_area.arrayZ, draw->row_cover.arrayZ, - ext.width, ext.x_origin, py, e, x_min, x_max); - if (((e.yH - 1) >> 6) > py) - draw->active_edges.push (idx); - } + draw->active_edges.push (idx); - /* Process continuing active edges, removing expired ones. */ + /* Process active edges, removing expired ones. */ + unsigned x_min = ext.width, x_max = 0; for (unsigned j = 0; j < draw->active_edges.length; ) { const auto &e = draw->edges.arrayZ[draw->active_edges.arrayZ[j]];