Branch: refs/heads/main Home: https://github.com/WebKit/WebKit Commit: 2da8807b15a6fe8b49b1b83484daa350c532001e https://github.com/WebKit/WebKit/commit/2da8807b15a6fe8b49b1b83484daa350c532001e Author: Dean Jackson <d...@apple.com> Date: 2022-10-14 (Fri, 14 Oct 2022)
Changed paths: M Source/WebCore/Modules/webxr/WebXROpaqueFramebuffer.cpp Log Message: ----------- WebXR should respond to changes in frame size https://bugs.webkit.org/show_bug.cgi?id=246496 <rdar://problem/101151986> Reviewed by Antoine Quint. The size of the framebuffer provided by the compositor may change during the life of a session. Detect this and respond to it. * Source/WebCore/Modules/webxr/WebXROpaqueFramebuffer.cpp: (WebCore::WebXROpaqueFramebuffer::startFrame): Look at the size of the incoming frame. If it has changed, re-run the setupFramebuffer logic. (WebCore::WebXROpaqueFramebuffer::setupFramebuffer): Make sure we delete existing WebGL objects if we create new ones. Canonical link: https://commits.webkit.org/255543@main _______________________________________________ webkit-changes mailing list webkit-changes@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-changes