[webkit-changes] [WebKit/WebKit] 8f6c81: [WebGPU] PresentationContextImpl::unconfigure may ...

mwyrzykowski noreply at github.com
Mon Feb 5 11:31:26 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 8f6c812f301934ae94a667d1b848a736fb0288be
      https://github.com/WebKit/WebKit/commit/8f6c812f301934ae94a667d1b848a736fb0288be
  Author: Mike Wyrzykowski <mwyrzykowski at apple.com>
  Date:   2024-02-05 (Mon, 05 Feb 2024)

  Changed paths:
    M Source/WebCore/Modules/WebGPU/Implementation/WebGPUCompositorIntegrationImpl.cpp

  Log Message:
  -----------
  [WebGPU] PresentationContextImpl::unconfigure may crash if context is null
https://bugs.webkit.org/show_bug.cgi?id=268662
<radar://122173894>

Reviewed by Dan Glastonbury.

The presentation context may be nullptr, so we need to check before calling
member functions on it.

* Source/WebCore/Modules/WebGPU/Implementation/WebGPUCompositorIntegrationImpl.cpp:
(WebCore::WebGPU::CompositorIntegrationImpl::prepareForDisplay):
(WebCore::WebGPU::CompositorIntegrationImpl::recreateRenderBuffers):

Canonical link: https://commits.webkit.org/274108@main




More information about the webkit-changes mailing list