[webkit-changes] [WebKit/WebKit] 15b647: [Skia] Global alpha is not handled when drawing an...
Carlos Garcia Campos
noreply at github.com
Fri Apr 5 01:49:28 PDT 2024
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 15b647424382d82c7b2c120c3f15ebf8a4126392
https://github.com/WebKit/WebKit/commit/15b647424382d82c7b2c120c3f15ebf8a4126392
Author: Carlos Garcia Campos <cgarcia at igalia.com>
Date: 2024-04-05 (Fri, 05 Apr 2024)
Changed paths:
M Source/WebCore/platform/graphics/skia/GraphicsContextSkia.cpp
Log Message:
-----------
[Skia] Global alpha is not handled when drawing an image or filling with a pattern
https://bugs.webkit.org/show_bug.cgi?id=272151
Reviewed by Alejandro G. Castro.
Set the global alpha when drawing images and filling with a pattern.
Also don't apply the alpha when setting the color of shadows, since it's
already taken from SkPaint global alpha or source color.
* Source/WebCore/platform/graphics/skia/GraphicsContextSkia.cpp:
(WebCore::GraphicsContextSkia::drawNativeImageInternal):
(WebCore::GraphicsContextSkia::createDropShadowFilterIfNeeded const):
(WebCore::GraphicsContextSkia::setupFillSource const):
Canonical link: https://commits.webkit.org/277106@main
To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications
More information about the webkit-changes
mailing list