[webkit-changes] [WebKit/WebKit] 91da50: Clean up collectScreenProperties()
Simon Fraser
noreply at github.com
Sat Jan 28 10:22:32 PST 2023
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 91da502c75ce04d454197a360eefa760d09ca59e
https://github.com/WebKit/WebKit/commit/91da502c75ce04d454197a360eefa760d09ca59e
Author: Simon Fraser <simon.fraser at apple.com>
Date: 2023-01-28 (Sat, 28 Jan 2023)
Changed paths:
M Source/WebCore/platform/ios/PlatformScreenIOS.mm
M Source/WebCore/platform/mac/PlatformScreenMac.mm
Log Message:
-----------
Clean up collectScreenProperties()
https://bugs.webkit.org/show_bug.cgi?id=251291
rdar://104761082
Reviewed by Tim Horton.
Tidy up the collectScreenProperties() code for macOS and iOS.
Instead of lots of local variables, just fill in a `ScreenData` and WTFMove() it into the hash map.
Move complex code that gets supportsHighDynamicRange on macOS into a lambda.
* Source/WebCore/platform/ios/PlatformScreenIOS.mm:
(WebCore::collectScreenProperties):
* Source/WebCore/platform/mac/PlatformScreenMac.mm:
(WebCore::collectScreenProperties):
Canonical link: https://commits.webkit.org/259527@main
More information about the webkit-changes
mailing list