Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 9993e5909f5124e3c2e5873d12d3479fe38413de
https://github.com/WebKit/WebKit/commit/9993e5909f5124e3c2e5873d12d3479fe38413de
Author: Carlos Garcia Campos <[email protected]>
Date: 2025-04-01 (Tue, 01 Apr 2025)
Changed paths:
M Source/WebCore/platform/graphics/Damage.h
M Tools/TestWebKitAPI/Tests/WebCore/glib/Damage.cpp
Log Message:
-----------
[GTK][WPE] Optimize the case of adding Damage to an empty Damage
https://bugs.webkit.org/show_bug.cgi?id=290613
Reviewed by Alejandro G. Castro.
In that case we can directly unite the given damage rects. We can also
optimize the case of unite() when there's only one rect, since we
already have the unite in m_minimumBoundingRectangle we can just copy it
to the first vector position.
* Source/WebCore/platform/graphics/Damage.h:
(WebCore::Damage::add):
(WebCore::Damage::cellIndexForRect const):
(WebCore::Damage::unite):
* Tools/TestWebKitAPI/Tests/WebCore/glib/Damage.cpp:
(TestWebKitAPI::TEST(Damage, AddRects)):
Canonical link: https://commits.webkit.org/293001@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes