Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 163003d0cfa23e228d68f6e0af966c3ff06b8f4a
      
https://github.com/WebKit/WebKit/commit/163003d0cfa23e228d68f6e0af966c3ff06b8f4a
  Author: Kimmo Kinnunen <[email protected]>
  Date:   2026-02-04 (Wed, 04 Feb 2026)

  Changed paths:
    M 
LayoutTests/fast/canvas/offscreen-giant-transfer-to-imagebitmap-expected.txt
    M 
LayoutTests/platform/ios/fast/canvas/offscreen-giant-transfer-to-imagebitmap-expected.txt
    M 
LayoutTests/platform/mac-wk2/fast/canvas/offscreen-giant-transfer-to-imagebitmap-expected.txt
    M Source/WebCore/html/canvas/GPUCanvasContextCocoa.mm
    M Source/WebCore/html/canvas/WebGLRenderingContextBase.cpp

  Log Message:
  -----------
  Avoid using CanvasBase::allocateImageBuffer() in WebGL, WebGPU 
transferToImageBuffer()
https://bugs.webkit.org/show_bug.cgi?id=306617
rdar://169276497

Reviewed by Mike Wyrzykowski.

The allocation function is related to how 2D context backing store is
allocated. transferToImageBuffer needs a general purpose ImageBuffer,
where the WebGL, WebGPU backing store is transferred to.

This makes it simpler to move 2D context related ImageBuffer code to
2D rendering context classes.

* 
LayoutTests/platform/mac-wk2/fast/canvas/offscreen-giant-transfer-to-imagebitmap-expected.txt:
Example of failure being fixed here:
Previously transferToImageBitmap of a giant WebGL context failed due to
canvas area limitations.

* Source/WebCore/html/canvas/GPUCanvasContextCocoa.mm:
(WebCore::GPUCanvasContextCocoa::transferToImageBuffer):
* Source/WebCore/html/canvas/WebGLRenderingContextBase.cpp:
(WebCore::WebGLRenderingContextBase::transferToImageBuffer):

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



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

Reply via email to