Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 2fab5e75c97b5725b4a02725599dfb412041abfe
https://github.com/WebKit/WebKit/commit/2fab5e75c97b5725b4a02725599dfb412041abfe
Author: Sam Weinig <[email protected]>
Date: 2026-09-28 (Mon, 28 Sep 2026)
Changed paths:
M Source/WebCore/html/CustomPaintImage.cpp
M Source/WebCore/platform/graphics/BitmapImage.cpp
M Source/WebCore/platform/graphics/GradientImage.cpp
M Source/WebCore/platform/graphics/GraphicsContext.h
M Source/WebCore/platform/graphics/GraphicsContextState.cpp
M Source/WebCore/platform/graphics/GraphicsContextState.h
M Source/WebCore/platform/graphics/Image.cpp
M Source/WebCore/platform/graphics/ImagePaintingOptions.h
M Source/WebCore/platform/graphics/ImageTypes.h
M Source/WebCore/rendering/BackgroundPainter.cpp
M Source/WebCore/svg/graphics/SVGImage.cpp
M Source/WebKit/GPUProcess/graphics/RemoteGraphicsContext.cpp
M Source/WebKit/GPUProcess/graphics/RemoteGraphicsContext.h
M Source/WebKit/GPUProcess/graphics/RemoteGraphicsContext.messages.in
M Source/WebKit/WebProcess/GPU/graphics/RemoteGraphicsContextProxy.cpp
M Tools/TestWebKitAPI/Tests/WebCore/DisplayListRecorderTests.cpp
Log Message:
-----------
[Image Redux] Make drawing a luminance mask a property of the draw
https://bugs.webkit.org/show_bug.cgi?id=325427
Reviewed by Simon Fraser.
Rather than tracking a DrawLuminanceMask bit in the GraphicsContext state, we
can instead
make it a property of image drawing by adding it to ImagePaintingOptions.
This is a safe transformation because currently, the one caller that sets
DrawLuminanceMask
to true, BackgroundPainter, sets it right before drawing a mask image. Each
image kind that
honored the flag read it and then cleared it immediately.
* Source/WebCore/html/CustomPaintImage.cpp:
* Source/WebCore/platform/graphics/BitmapImage.cpp:
* Source/WebCore/platform/graphics/GradientImage.cpp:
* Source/WebCore/platform/graphics/Image.cpp:
* Source/WebCore/svg/graphics/SVGImage.cpp:
* Source/WebCore/platform/graphics/GraphicsContext.h:
* Source/WebCore/platform/graphics/GraphicsContextState.cpp:
* Source/WebCore/platform/graphics/GraphicsContextState.h:
* Source/WebCore/platform/graphics/ImagePaintingOptions.h:
* Source/WebCore/platform/graphics/ImageTypes.h:
* Source/WebCore/rendering/BackgroundPainter.cpp:
* Source/WebKit/GPUProcess/graphics/RemoteGraphicsContext.cpp:
* Source/WebKit/GPUProcess/graphics/RemoteGraphicsContext.h:
* Source/WebKit/GPUProcess/graphics/RemoteGraphicsContext.messages.in:
* Source/WebKit/WebProcess/GPU/graphics/RemoteGraphicsContextProxy.cpp:
* Tools/TestWebKitAPI/Tests/WebCore/DisplayListRecorderTests.cpp:
Canonical link: https://commits.webkit.org/322059@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications