PrivatelostPrivatedisposedPrivateinPrivategenerationBumped per armed device, so a stale lost resolution is ignored.
Private ReadonlydepsWhether the device is currently lost (recovery pending or failed).
Observe the current renderer's device. Returns false when there is none.
Stop observing. Idempotent.
Run the loss → recovery sequence as if the device had just been lost.
The debug surface uses it to exercise recovery in a native session, where
the only way to lose a device on demand (device.destroy()) reports
'destroyed', which the observer deliberately ignores.
PrivatehandlePrivaterunPrivaterecoverThe attempt that rebuilt the renderer, or null when none did (or we were disposed).
Privatetry
Watches the active device and rebuilds the renderer when it is lost.
attach()arms the observer;dispose()disarms it (a later resolution of an oldlostpromise is ignored).