)]}'
{
  "commit": "7a2416230637b3cc10b39f8e00d80aa5a3cdb468",
  "tree": "f3c5ae37211986ed881fe990a2f429aa678a43d2",
  "parents": [
    "70452eb388c0557d896f5c1ca1f6c995b8e98492"
  ],
  "author": {
    "name": "Guido Rosso",
    "email": "guido@rive.app",
    "time": "Wed Nov 04 08:53:41 2026 -0800"
  },
  "committer": {
    "name": "Guido Rosso",
    "email": "guido@rive.app",
    "time": "Wed Nov 04 08:53:41 2026 -0800"
  },
  "message": "fix(scripting): mint 2d canvases before the device binds, like gpu canvases (#15399)\n\n* fix(scripting): mint 2d canvases before the device binds, like gpu canvases\n\nSince #15312 a gpu canvas exists at init on web, so scripts run their GPU\nsetup there. A sized 2D canvas made at init still waited for the device and\nhad no image, so `canvas.image.view()` came back null and scripts that need\nit trapped.\n\nBoth lanes now mint 2D canvases through the same helper as gpu canvases. A\nrecorded Luau canvas no longer needs the render context to begin a frame.\n\n* test(scripting): cover a 2d canvas resized before the device binds\n\nThe Luau resize path had no test once context:canvas() started minting at\ncreation. Also fixes two comments that still said a recording host waits for\nits device, and drops one that sat on the branch it didn\u0027t describe.\n\n* refactor(scripting): share the canvas mint path and test its replay backing\n\n---------\n\nCo-authored-by: Luigi Rosso \u003cluigi.rosso@gmail.com\u003e\nRive-Mono-Commit: a71f1fe15ad5e5e51ec128963e3bd4273f42d9c3\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "85a5210c0a8e5aac96d2945f6c847477e1c9917c",
      "old_mode": 33188,
      "old_path": "include/rive/lua/rive_lua_libs.hpp",
      "new_id": "c0390f86e8151aca0077b21f4ecda6ffc01b4062",
      "new_mode": 33188,
      "new_path": "include/rive/lua/rive_lua_libs.hpp"
    },
    {
      "type": "modify",
      "old_id": "9d3d78970297f8b5f5d5ab15699bc900c9d1bbdc",
      "old_mode": 33188,
      "old_path": "src/lua/lua_scripted_context.cpp",
      "new_id": "8ac0e000ccc6446a09ef79d67720b0ac1f2e92de",
      "new_mode": 33188,
      "new_path": "src/lua/lua_scripted_context.cpp"
    },
    {
      "type": "modify",
      "old_id": "e29941d5dcef3e402b0a845cf8515e6956fcb34a",
      "old_mode": 33188,
      "old_path": "src/lua/renderer/lua_gpu.cpp",
      "new_id": "7ee4ade9785ec2f48529cf4069fc2d4ade55d01f",
      "new_mode": 33188,
      "new_path": "src/lua/renderer/lua_gpu.cpp"
    },
    {
      "type": "modify",
      "old_id": "6a2fca4888080fac77fc42d7fb562bdf4fba6445",
      "old_mode": 33188,
      "old_path": "src/wasm/wasm_scripting_vm.cpp",
      "new_id": "700a5a25fb0e2f07db0d57fd2e51ad00048f4101",
      "new_mode": 33188,
      "new_path": "src/wasm/wasm_scripting_vm.cpp"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "1184524a3f9a728cd5d95ad1c7ae4593827fe797",
      "new_mode": 33188,
      "new_path": "tests/unit_tests/runtime/scripting/scripting_deferred_canvas_test.cpp"
    },
    {
      "type": "delete",
      "old_id": "25e1c0593f22f30505b66fc460bfde5a2d6d8cfd",
      "old_mode": 33188,
      "old_path": "tests/unit_tests/runtime/scripting/scripting_deferred_gpu_canvas_test.cpp",
      "new_id": "0000000000000000000000000000000000000000",
      "new_mode": 0,
      "new_path": "/dev/null"
    },
    {
      "type": "modify",
      "old_id": "cc8d985b2bf98d0844c90522072773c1f84193fb",
      "old_mode": 33188,
      "old_path": "tests/unit_tests/runtime/scripting/scripting_routing_test.cpp",
      "new_id": "22bb51d24f765dbab1bc4e8d4c7824f983a0b420",
      "new_mode": 33188,
      "new_path": "tests/unit_tests/runtime/scripting/scripting_routing_test.cpp"
    }
  ]
}
