Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: b871911a6d8e2e916fe5ee21e4c2af2f651af930
https://github.com/WebKit/WebKit/commit/b871911a6d8e2e916fe5ee21e4c2af2f651af930
Author: Kimmo Kinnunen <[email protected]>
Date: 2026-09-14 (Mon, 14 Sep 2026)
Changed paths:
R LayoutTests/fast/canvas/webgl/resources/pnglib.js
R LayoutTests/fast/canvas/webgl/tex-image-with-format-and-type-expected.txt
R LayoutTests/fast/canvas/webgl/tex-image-with-format-and-type.html
M Source/WebCore/html/canvas/WebGLRenderingContextBase.cpp
M Source/WebCore/html/canvas/WebGLRenderingContextBase.h
M Source/WebCore/platform/graphics/GraphicsContextGLImageExtractor.cpp
M Source/WebCore/platform/graphics/GraphicsContextGLImageExtractor.h
M Source/WebCore/platform/graphics/cairo/GraphicsContextGLCairo.cpp
M Source/WebCore/platform/graphics/cg/GraphicsContextGLCG.cpp
M Source/WebCore/platform/graphics/skia/GraphicsContextGLSkia.cpp
Log Message:
-----------
REGRESSION(320327@main)
webgl/*/conformance/textures/misc/tex-image-with-format-and-type.html fail
https://bugs.webkit.org/show_bug.cgi?id=323856
rdar://187093618
Reviewed by Dan Glastonbury.
Fix
webgl/2.0.y/conformance/textures/misc/tex-image-with-format-and-type.html
webgl/1.0.x/conformance/textures/misc/tex-image-with-format-and-type.html
For now, resolve the texture upload data (NativeImage) premultiplication
status at the call site. Later on, this will be exposed correctly
through NativeImage.
* LayoutTests/fast/canvas/webgl/tex-image-with-format-and-type.html: Removed.
Old variant of the test that now exists in the CTS.
* Source/WebCore/html/canvas/WebGLRenderingContextBase.cpp:
(WebCore::nativeImageForTexImageSource):
(WebCore::WebGLRenderingContextBase::texImageImpl):
* Source/WebCore/html/canvas/WebGLRenderingContextBase.h:
* Source/WebCore/platform/graphics/GraphicsContextGLImageExtractor.cpp:
(WebCore::GraphicsContextGLImageExtractor::GraphicsContextGLImageExtractor):
(WebCore::GraphicsContextGLImageExtractor::alphaOpForPremultiplication):
* Source/WebCore/platform/graphics/GraphicsContextGLImageExtractor.h:
* Source/WebCore/platform/graphics/cairo/GraphicsContextGLCairo.cpp:
(WebCore::GraphicsContextGLImageExtractor::extractImage):
* Source/WebCore/platform/graphics/cg/GraphicsContextGLCG.cpp:
(WebCore::GraphicsContextGLImageExtractor::extractImage):
* Source/WebCore/platform/graphics/skia/GraphicsContextGLSkia.cpp:
(WebCore::GraphicsContextGLImageExtractor::extractImage):
Canonical link: https://commits.webkit.org/321143@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications