[webkit-changes] [WebKit/WebKit] eca96f: Cache ImageBufferIOSurfaceBackend volatility state.
mattwoodrow
noreply at github.com
Thu Mar 9 13:50:33 PST 2023
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: eca96fd4401bb2c7c76a7a211394846a66d2b66d
https://github.com/WebKit/WebKit/commit/eca96fd4401bb2c7c76a7a211394846a66d2b66d
Author: Matt Woodrow <mattwoodrow at apple.com>
Date: 2023-03-09 (Thu, 09 Mar 2023)
Changed paths:
M Source/WebCore/platform/graphics/cg/ImageBufferIOSurfaceBackend.cpp
Log Message:
-----------
Cache ImageBufferIOSurfaceBackend volatility state.
https://bugs.webkit.org/show_bug.cgi?id=242430
Reviewed by Simon Fraser.
Setting the volatility state requires a syscall, which we can avoid if we already know
we're in the right state. This looks to help MotionMark performance.
* Source/WebCore/platform/graphics/cg/ImageBufferIOSurfaceBackend.cpp:
(WebCore::ImageBufferIOSurfaceBackend::ImageBufferIOSurfaceBackend):
(WebCore::ImageBufferIOSurfaceBackend::setVolatile):
(WebCore::ImageBufferIOSurfaceBackend::setNonVolatile):
Canonical link: https://commits.webkit.org/261464@main
More information about the webkit-changes
mailing list