RESOLVED FIXED226564
[WebXR] Supply an IOSurface in SimulatedXRDevice
https://bugs.webkit.org/show_bug.cgi?id=226564
Summary [WebXR] Supply an IOSurface in SimulatedXRDevice
Dean Jackson
Reported 2021-06-02 18:34:50 PDT
Supply an IOSurface in SimulatedXRDevice
Attachments
Patch (2.75 KB, patch)
2021-06-02 18:36 PDT, Dean Jackson
sam: review+
Radar WebKit Bug Importer
Comment 1 2021-06-02 18:35:02 PDT
Dean Jackson
Comment 2 2021-06-02 18:36:57 PDT
Sam Weinig
Comment 3 2021-06-03 08:10:41 PDT
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.
Dean Jackson
Comment 4 2021-06-05 16:32:23 PDT
Note You need to log in before you can comment on or make changes to this bug.