[webkit-changes] [WebKit/WebKit] 5bb758: [WebGPU] Crash PresentationContextIOSurface::getCu...

mwyrzykowski noreply at github.com
Sun Feb 11 16:35:52 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 5bb758bb78c90c5bf10aba2341f18b2dfee4bed2
      https://github.com/WebKit/WebKit/commit/5bb758bb78c90c5bf10aba2341f18b2dfee4bed2
  Author: Mike Wyrzykowski <mwyrzykowski at apple.com>
  Date:   2024-02-11 (Sun, 11 Feb 2024)

  Changed paths:
    M Source/WebCore/Modules/WebGPU/Implementation/WebGPUPresentationContextImpl.cpp
    M Source/WebGPU/WebGPU/PresentationContextIOSurface.mm

  Log Message:
  -----------
  [WebGPU] Crash PresentationContextIOSurface::getCurrentTexture if context is not configured
https://bugs.webkit.org/show_bug.cgi?id=269103
<radar://122671890>

Reviewed by Dan Glastonbury.

An IPC call made directly to getCurrentTexture may result in a scenario where
the IOSurfaces have not yet been created. In this case, we want to return nullptr
to the caller.

* Source/WebCore/Modules/WebGPU/Implementation/WebGPUPresentationContextImpl.cpp:
(WebCore::WebGPU::PresentationContextImpl::getCurrentTexture):
* Source/WebGPU/WebGPU/PresentationContextIOSurface.mm:
(WebGPU::PresentationContextIOSurface::getCurrentTexture):
(WebGPU::PresentationContextIOSurface::getCurrentTextureView):

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




More information about the webkit-changes mailing list