Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: a161d148dd28490936ed0fcf6fee68c462fa4bdc
https://github.com/WebKit/WebKit/commit/a161d148dd28490936ed0fcf6fee68c462fa4bdc
Author: Mike Wyrzykowski <[email protected]>
Date: 2025-10-24 (Fri, 24 Oct 2025)
Changed paths:
M Source/WebGPU/WebGPU/PresentationContextIOSurface.h
M Source/WebGPU/WebGPU/PresentationContextIOSurface.mm
Log Message:
-----------
Offscreen canvas flickers during screen resize
https://bugs.webkit.org/show_bug.cgi?id=301307
rdar://163225630
Reviewed by Dan Glastonbury.
When Canvas is resized, we recreate the IOSurface backing store.
If the site chooses not to render again, their canvas will be blank.
Peform a simple nearest neighbor copy to preserve the contents. Fragment
shader is probably better suited for this but compute shader is simpler.
* Source/WebGPU/WebGPU/PresentationContextIOSurface.h:
* Source/WebGPU/WebGPU/PresentationContextIOSurface.mm:
(WebGPU::PresentationContextIOSurface::renderBuffersWereRecreated):
(WebGPU::PresentationContextIOSurface::resizeComputePipelineState):
(WebGPU::PresentationContextIOSurface::configure): Deleted.
Canonical link: https://commits.webkit.org/302128@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications