Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 5bb758bb78c90c5bf10aba2341f18b2dfee4bed2
      
https://github.com/WebKit/WebKit/commit/5bb758bb78c90c5bf10aba2341f18b2dfee4bed2
  Author: Mike Wyrzykowski <[email protected]>
  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


_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to