)]}'
{
  "commit": "bf7f5bf2b6995fce119b8023091c0dfd597bbc5d",
  "tree": "3641d4a1b4d661c231a1e2902cd8d065fc121849",
  "parents": [
    "3dd2eb752f3387a3a0db3bc3b7bc365ecfa405ba"
  ],
  "author": {
    "name": "Behdad Esfahbod",
    "email": "behdad@behdad.org",
    "time": "Sat Nov 21 14:21:53 2026 -0600"
  },
  "committer": {
    "name": "Behdad Esfahbod",
    "email": "behdad@behdad.org",
    "time": "Sat Nov 21 14:22:06 2026 -0600"
  },
  "message": "[vector] Tile a repeating sweep all the way around before adding stops\n\nA sweep gradient is written as the tiles that\nhb_paint_sweep_gradient_tiles() makes of its color line, which stops\nafter HB_PAINT_MAX_SWEEP_TILES of them and leaves the rest of the\ncircle unpainted.  The SVG and PDF writers rewrite the stops first, so\nthat a viewer interpolating them comes to COLR\u0027s premultiplied colors,\nand that adds up to 15 stops between two stops that differ in alpha.\nFor a color line that repeats or reflects, each of those is a tile in\nevery period: a sweep from opaque red to blue at alpha 64 that repeats\nevery degree took 16 tiles a period, ran out of tiles after 256\ndegrees, and painted nothing in the last 104.  Before the stops were\nrewritten it took 360 tiles and went all the way around.\n\nThe stops of a sweep are now rewritten with as many stops added as\nleave the tiles enough to cover the circle: 16 stretches between two\nstops, or 8, 4, 2, or none; and if the color line cannot be tiled all\nthe way around with the transparent stops fixed either, its stops are\nused as they are.  The sweep above gets 8 stretches a period, 2880\ntiles.  Nothing changes for a sweep that had tiles enough.\n\nhb-cairo does not rewrite the stops of a sweep, so its sweeps are as\nthey were.\n\nTest: test-vector-gradient paints that sweep, repeating and\nreflecting, and checks that the wedges of the SVG and the patches of\nthe PDF mesh cover every tenth of a degree around the center; before\nthis change the directions from 255.9 to 360 degrees had none.\nRendered at 200x200, clipped to the square: librsvg left 11200 pixels\ntransparent and poppler and Ghostscript left 11199 and 11100 white,\nall three none now.  In librsvg no pixel is transparent for periods\nfrom 0.0879 to 1 degree either, and the SVG and PDF for periods of 2\ndegrees and more are byte for byte what they were.  The whole suite\npasses.\n\nCo-Authored-By: Claude Fable 5.2 \u003cnoreply@anthropic.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "0eec74fddd9d62cfe7e7b3ed0c25b09c20420a2a",
      "old_mode": 33188,
      "old_path": "src/hb-paint.hh",
      "new_id": "5dcb34764bee58a1675f1f20145d029ad60d7db4",
      "new_mode": 33188,
      "new_path": "src/hb-paint.hh"
    },
    {
      "type": "modify",
      "old_id": "040b060fa419712f5abc6f591bd2bca45f983743",
      "old_mode": 33188,
      "old_path": "src/hb-vector-paint-pdf.cc",
      "new_id": "bd5bb9c9d59fe9bbd1b7deff5419fbdbb7a86a3e",
      "new_mode": 33188,
      "new_path": "src/hb-vector-paint-pdf.cc"
    },
    {
      "type": "modify",
      "old_id": "90da9f7b3d4cedb6e3500509afb2261afbe4cfbb",
      "old_mode": 33188,
      "old_path": "src/hb-vector-paint-svg.cc",
      "new_id": "54ffc0e1bf392fd97c16646bd69136692b38ab69",
      "new_mode": 33188,
      "new_path": "src/hb-vector-paint-svg.cc"
    },
    {
      "type": "modify",
      "old_id": "827a0a01a0b8b03ac8eb2be0bafdcfc4754a68f3",
      "old_mode": 33188,
      "old_path": "src/hb-vector-paint.hh",
      "new_id": "ce62e51a5a54ae802a6980fa771aded2f877e429",
      "new_mode": 33188,
      "new_path": "src/hb-vector-paint.hh"
    },
    {
      "type": "modify",
      "old_id": "9cea62eb3e9157fb20f331d3cc7599d881c49e2f",
      "old_mode": 33188,
      "old_path": "test/vector/test-vector-gradient.c",
      "new_id": "0e622e3606927bfe9668061f997b41d9a74edb05",
      "new_mode": 33188,
      "new_path": "test/vector/test-vector-gradient.c"
    }
  ]
}
