Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 887ef237a72646e0a1c272ca959444e45d5b3419
https://github.com/WebKit/WebKit/commit/887ef237a72646e0a1c272ca959444e45d5b3419
Author: Mike Wyrzykowski <[email protected]>
Date: 2026-01-16 (Fri, 16 Jan 2026)
Changed paths:
M Source/WebCore/platform/graphics/cg/IOSurfacePool.cpp
M Source/WebCore/platform/graphics/cg/IOSurfacePool.h
Log Message:
-----------
IOSurfacePool should not mark inUse surfaces as volatile
https://bugs.webkit.org/show_bug.cgi?id=305647
rdar://167596824
Reviewed by Tim Horton.
It is incorrect to call setVolatile(true) on an IOSurface
whose contents are currently in use, as they could be immediately
purged by the system leaving in use contents undefined.
Note, in use surfaces are added to m_surfaceDetails in
IOSurfacePool::willAddSurface so before calling setVolatile(true),
check to see if the surface is no longer in use.
* Source/WebCore/platform/graphics/cg/IOSurfacePool.cpp:
(WebCore::IOSurfacePool::markOlderSurfacesPurgeable):
Canonical link: https://commits.webkit.org/305733@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications