Supply an IOSurface in SimulatedXRDevice
<rdar://problem/78793086>
Created attachment 430431 [details] Patch
Comment on attachment 430431 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=430431&action=review > Source/WebCore/Modules/webxr/WebXROpaqueFramebuffer.cpp:119 > + ASSERT(data.surface); Maybe consider making surface a UniqueRef? > Source/WebCore/testing/WebFakeXRDevice.cpp:154 > + auto surface = IOSurface::create(recommendedResolution(PlatformXR::SessionMode::ImmersiveVr), DestinationColorSpace::SRGB()); > + data.layers.add(layer.key, FrameData::LayerData { .surface = WTFMove(surface) }); I would do this in one line.
Committed r278528 (238527@main): <https://commits.webkit.org/238527@main>