[webkit-changes] [WebKit/WebKit] 7d9a65: [Skia] Use Skia API when adding rounded rect to pa...
Carlos Garcia Campos
noreply at github.com
Wed Feb 21 09:27:05 PST 2024
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 7d9a6549eb1269c0d823ac95fe940f17f49a4b53
https://github.com/WebKit/WebKit/commit/7d9a6549eb1269c0d823ac95fe940f17f49a4b53
Author: Carlos Garcia Campos <cgarcia at igalia.com>
Date: 2024-02-21 (Wed, 21 Feb 2024)
Changed paths:
M Source/WebCore/platform/SourcesSkia.txt
M Source/WebCore/platform/graphics/FloatRoundedRect.h
A Source/WebCore/platform/graphics/skia/FloatRoundedRectSkia.cpp
M Source/WebCore/platform/graphics/skia/GraphicsContextSkia.cpp
M Source/WebCore/platform/graphics/skia/PathSkia.cpp
Log Message:
-----------
[Skia] Use Skia API when adding rounded rect to path and strategy is PreferNative
https://bugs.webkit.org/show_bug.cgi?id=269845
Reviewed by Adrian Perez de Castro.
Also add conversion operators between FloatRounrdedRect and SkRREct to
remove duplicated code.
* Source/WebCore/platform/SourcesSkia.txt:
* Source/WebCore/platform/graphics/FloatRoundedRect.h:
* Source/WebCore/platform/graphics/skia/FloatRoundedRectSkia.cpp: Added.
(WebCore::FloatRoundedRect::FloatRoundedRect):
(WebCore::FloatRoundedRect::operator SkRRect const):
* Source/WebCore/platform/graphics/skia/GraphicsContextSkia.cpp:
(WebCore::GraphicsContextSkia::fillRoundedRectImpl):
(WebCore::GraphicsContextSkia::fillRectWithRoundedHole):
* Source/WebCore/platform/graphics/skia/PathSkia.cpp:
(WebCore::PathSkia::add):
Canonical link: https://commits.webkit.org/275106@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