Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 71c793a99277fffc533ac9bc71ee4ede6dba47f8
      
https://github.com/WebKit/WebKit/commit/71c793a99277fffc533ac9bc71ee4ede6dba47f8
  Author: Said Abou-Hallawa <[email protected]>
  Date:   2026-10-14 (Wed, 14 Oct 2026)

  Changed paths:
    A 
LayoutTests/fast/webgpu/draw-element-image-to-texture-validation-expected.txt
    A LayoutTests/fast/webgpu/draw-element-image-to-texture-validation.html
    A LayoutTests/fast/webgpu/draw-element-image-transparent-rect-expected.html
    A LayoutTests/fast/webgpu/draw-element-image-transparent-rect.html
    M Source/WebCore/Modules/WebGPU/GPUQueue.cpp
    M Source/WebCore/Modules/WebGPU/GPUQueue.h
    M Source/WebCore/html/HTMLCanvasElement.cpp
    M Source/WebCore/html/HTMLCanvasElement.h

  Log Message:
  -----------
  [HTML-in-Canvas] Implement drawElementImageToTexture for WebGPU
https://bugs.webkit.org/show_bug.cgi?id=327115
rdar://189722280

Reviewed by Mike Wyrzykowski.

WebGPU can't replay a DisplayList, so the DisplayList is drawn into a local
ImageBuffer instead. The ImageBuffer's bytes are then read back and written
into the texture.

Tests: fast/webgpu/draw-element-image-to-texture-validation.html
       fast/webgpu/draw-element-image-transparent-rect.html

* LayoutTests/fast/webgpu/draw-element-image-transparent-rect-expected.html: 
Added.
* LayoutTests/fast/webgpu/draw-element-image-transparent-rect.html: Added.
* 
LayoutTests/fast/webgpu/draw-element-image-to-texture-validation-expected.txt: 
Added.
* LayoutTests/fast/webgpu/draw-element-image-to-texture-validation.html: Added.
* Source/WebCore/Modules/WebGPU/GPUQueue.cpp:
(WebCore::GPUQueue::drawSnapshotToTexture):
(WebCore::GPUQueue::drawElementImageToTexture):
* Source/WebCore/Modules/WebGPU/GPUQueue.h:
* Source/WebCore/html/HTMLCanvasElement.cpp:
(WebCore::HTMLCanvasElement::captureElementImage const):
(WebCore::HTMLCanvasElement::captureElementImage): Deleted.
* Source/WebCore/html/HTMLCanvasElement.h:

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



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

Reply via email to