(value: T)
| 2559 | }); |
| 2560 | lastNativeCompositionByWindowId.set(windowId, result.serialized); |
| 2561 | if (cache) { |
| 2562 | syncCompositionShaderUniformSlots(bridge, windowId, cache); |
| 2563 | } |
| 2564 | return; |
| 2565 | } |
| 2566 | |
| 2567 | const dirtyNodeIds = topLevelDirtyNodeIds(result.dirtyNodeIds ?? []); |
| 2568 | const previous = lastNativeCompositionByWindowId.get(windowId); |
| 2569 | const uniformPatches = |
| 2570 | previous === undefined |
| 2571 | ? null |
| 2572 | : collectShaderUniformPatches( |
| 2573 | previous, |
| 2574 | result.serialized, |
| 2575 | dirtyNodeIds, |
| 2576 | result.dirtyNodeIds ?? [], |
| 2577 | ); |
| 2578 | if (uniformPatches && uniformPatches.length > 0) { |
| 2579 | bridge.beginCompositionPatches(requestId, windowId); |
| 2580 | for (const patch of uniformPatches) { |
| 2581 | if (patch.arrayElementWidth !== undefined) { |
no test coverage detected