Summary: | [WebXR] Supply an IOSurface in SimulatedXRDevice | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Dean Jackson <dino> | ||||
Component: | WebXR | Assignee: | Dean Jackson <dino> | ||||
Status: | RESOLVED FIXED | ||||||
Severity: | Normal | CC: | sam, webkit-bug-importer | ||||
Priority: | P2 | Keywords: | InRadar | ||||
Version: | WebKit Nightly Build | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Attachments: |
|
Description
Dean Jackson
2021-06-02 18:34:50 PDT
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> |