[webkit-changes] [WebKit/WebKit] 2da880: WebXR should respond to changes in frame size

Dean Jackson noreply at github.com
Fri Oct 14 12:37:20 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 2da8807b15a6fe8b49b1b83484daa350c532001e
      https://github.com/WebKit/WebKit/commit/2da8807b15a6fe8b49b1b83484daa350c532001e
  Author: Dean Jackson <dino at 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




More information about the webkit-changes mailing list