Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: e2cab1a5b940053eff2db407b023974325f73556
      
https://github.com/WebKit/WebKit/commit/e2cab1a5b940053eff2db407b023974325f73556
  Author: Mike Wyrzykowski <[email protected]>
  Date:   2026-07-07 (Tue, 07 Jul 2026)

  Changed paths:
    A 
LayoutTests/fast/webgpu/offscreen-canvas-rgba16float-transparency-expected.html
    A LayoutTests/fast/webgpu/offscreen-canvas-rgba16float-transparency.html
    M 
Source/WebCore/Modules/WebGPU/Implementation/WebGPUCompositorIntegrationImpl.cpp
    M 
Source/WebCore/Modules/WebGPU/Implementation/WebGPUCompositorIntegrationImpl.h
    M Source/WebCore/platform/graphics/cocoa/IOSurface.h
    M Source/WebCore/platform/graphics/cocoa/IOSurface.mm

  Log Message:
  -----------
  [WebGPU] RGBA16Float offscreen canvas appears opaque
https://bugs.webkit.org/show_bug.cgi?id=318726
rdar://181531622

Reviewed by Tadeu Zagallo.

Unlike BGRX - BGRA, RGBA16Float doesn't encode the presence of the alpha 
channel into
the IOSurface format, so we need to consult the canvas behavior when reading 
back the contents.

Test: fast/webgpu/offscreen-canvas-rgba16float-transparency.html
* 
LayoutTests/fast/webgpu/offscreen-canvas-rgba16float-transparency-expected.html:
 Added.
* LayoutTests/fast/webgpu/offscreen-canvas-rgba16float-transparency.html: Added.
* 
Source/WebCore/Modules/WebGPU/Implementation/WebGPUCompositorIntegrationImpl.cpp:
(WebCore::WebGPU::CompositorIntegrationImpl::recreateRenderBuffers):
(WebCore::WebGPU::CompositorIntegrationImpl::withDisplayBufferAsNativeImage):
* 
Source/WebCore/Modules/WebGPU/Implementation/WebGPUCompositorIntegrationImpl.h:
* Source/WebCore/platform/graphics/cocoa/IOSurface.h:
* Source/WebCore/platform/graphics/cocoa/IOSurface.mm:
(WebCore::IOSurface::createNativeImage):

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



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to