WebXR uses IOKit in WebContent process #if USE(IOSURFACE_FOR_XR_LAYER_DATA) MachSendRight surfaceSendRight; if (!decoder.decode(surfaceSendRight)) return std::nullopt; layerData.surface = WebCore::IOSurface::createFromSendRight(WTFMove(surfaceSendRight), WebCore::DestinationColorSpace::SRGB()); if (!decoder.decode(layerData.isShared)) return std::nullopt; #else
<rdar://problem/85200236>