Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: e45d2509032d4e1c9e0aa60a26d09bc8a37c40f1
https://github.com/WebKit/WebKit/commit/e45d2509032d4e1c9e0aa60a26d09bc8a37c40f1
Author: Carlos Garcia Campos <[email protected]>
Date: 2026-04-21 (Tue, 21 Apr 2026)
Changed paths:
M Source/WebCore/platform/graphics/skia/SkiaCompositingLayer.cpp
M Source/WebCore/platform/graphics/skia/SkiaCompositingLayer.h
M
Source/WebCore/platform/graphics/texmap/coordinated/CoordinatedBackingStore.h
M
Source/WebCore/platform/graphics/texmap/coordinated/CoordinatedBackingStoreProxy.h
Log Message:
-----------
[GTK][WPE] Skia Compositor: use SkCanvas::clipShader for image masks instead
of intermediate surface
https://bugs.webkit.org/show_bug.cgi?id=312557
Reviewed by Nikolas Zimmermann.
Not only we avoid the intermediate surface creation, we can paint the
mask image only once with no transforms, and then create a SkShader from
the cached image for the current transform.
* Source/WebCore/platform/graphics/skia/SkiaCompositingLayer.cpp:
(WebCore::SkiaCompositingLayer::invalidate):
(WebCore::SkiaCompositingLayer::setUseBackingStore):
(WebCore::SkiaCompositingLayer::updateBackingStore):
(WebCore::SkiaCompositingLayer::paintSelf):
(WebCore::SkiaCompositingLayer::maskImage):
(WebCore::SkiaCompositingLayer::paintSelfAndChildrenWithFilterAndMask):
* Source/WebCore/platform/graphics/skia/SkiaCompositingLayer.h:
* Source/WebCore/platform/graphics/texmap/coordinated/CoordinatedBackingStore.h:
*
Source/WebCore/platform/graphics/texmap/coordinated/CoordinatedBackingStoreProxy.h:
Canonical link: https://commits.webkit.org/311674@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications