Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 169c737cae5df91b33f85474dd9930d433447e54
https://github.com/WebKit/WebKit/commit/169c737cae5df91b33f85474dd9930d433447e54
Author: Kimmo Kinnunen <[email protected]>
Date: 2026-09-08 (Tue, 08 Sep 2026)
Changed paths:
M Source/WebCore/platform/graphics/cocoa/IOSurface.h
M Source/WebCore/platform/graphics/cocoa/IOSurface.mm
M Tools/TestWebKitAPI/Tests/WebCore/cocoa/IOSurfaceTests.mm
Log Message:
-----------
GPUP spends time setting canvas backing store IOSurfaces as non-volatile
https://bugs.webkit.org/show_bug.cgi?id=323661
rdar://186907856
Reviewed by Mike Wyrzykowski.
Calling into IOKit setting IOSurfaces non-volatile when they are
non-volatile is relatively slow operation. This happens when
surfaces are created.
Fix by caching the state locally.
Test: Tools/TestWebKitAPI/Tests/WebCore/cocoa/IOSurfaceTests.mm
* Source/WebCore/platform/graphics/cocoa/IOSurface.h:
* Source/WebCore/platform/graphics/cocoa/IOSurface.mm:
(WebCore::IOSurface::state const):
(WebCore::IOSurface::isVolatile const):
(WebCore::IOSurface::setVolatile):
* Tools/TestWebKitAPI/Tests/WebCore/cocoa/IOSurfaceTests.mm:
(TestWebKitAPI::TEST(IOSurfaceTest, Volatility)):
Canonical link: https://commits.webkit.org/320711@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications